ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (363.4ms) DROP DATABASE IF EXISTS "dummy_test"  (1482.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (0.1ms)  (0.3ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.3ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.3ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms)   (0.1ms)  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_articles" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_articles"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_articles"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.3ms)   (183.1ms) DROP DATABASE IF EXISTS "dummy_test"  (1454.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (198.9ms) DROP DATABASE IF EXISTS "dummy_test"  (1465.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (278.3ms) DROP DATABASE IF EXISTS "dummy_test"  (2169.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (193.1ms) DROP DATABASE IF EXISTS "dummy_test"  (1206.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (182.5ms) DROP DATABASE IF EXISTS "dummy_test"  (1301.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (228.5ms) DROP DATABASE IF EXISTS "dummy_test"  (1003.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (78.8ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.7ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.1ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.1ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.7ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (8.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.2ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.1ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.5ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.6ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (136.5ms) DROP DATABASE IF EXISTS "dummy_test"  (1338.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.4ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (9.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.1ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.9ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (8.0ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (15.9ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (12.9ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.1ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (7.4ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (4.0ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.6ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_jumbotrons' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_page_blocks' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_pages' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_sidebars' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_text_boxes' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_thumbnails' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (119.0ms) DROP DATABASE IF EXISTS "dummy_test"  (1011.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.7ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.6ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.2ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.6ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.0ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.6ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.3ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.7ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.1ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.9ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateInitialDb (20150615160631)  (0.3ms) BEGIN  (8.2ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" ("parent_id")  (5.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.5ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" ("page_id")  (2.8ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (5.7ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" ("page_block_id")  (1.9ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" ("image_id")  (1.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (1.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (6.3ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" ("page_block_id")  (2.6ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (24.9ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" ("page_block_id")  (1.8ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (5.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" ("page_id")  (1.9ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (5.5ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" ("image_id")  (1.9ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150615160631"]]  (2.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_jumbotrons' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_page_blocks' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (7.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_pages' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_sidebars' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_text_boxes' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_thumbnails' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (119.0ms) DROP DATABASE IF EXISTS "dummy_test"  (1126.2ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.4ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (7.8ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.1ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.9ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.7ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.0ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.4ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.2ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.0ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.6ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (26.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (14.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (5.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (5.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_jumbotrons' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (5.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_page_blocks' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (5.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_pages' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (5.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_sidebars' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_text_boxes' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_thumbnails' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (119.0ms) DROP DATABASE IF EXISTS "dummy_test"  (1308.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.9ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.6ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.6ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.5ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (20.0ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (9.7ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (15.0ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (49.0ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (185.9ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (16.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.6ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.3ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.8ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.4ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.2ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (117.8ms) DROP DATABASE IF EXISTS "dummy_test"  (1102.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.9ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (11.1ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.0ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (5.8ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (13.2ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.3ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.4ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.1ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.7ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.7ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.4ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (116.0ms) DROP DATABASE IF EXISTS "dummy_test"  (1050.2ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.8ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.6ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.4ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (5.8ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.6ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (7.0ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.6ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.3ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.2ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.5ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (117.1ms) DROP DATABASE IF EXISTS "dummy_test"  (1190.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.8ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (8.0ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.4ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (7.3ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (8.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (5.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.6ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.2ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_jumbotrons' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (4.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_page_blocks' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (5.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_pages' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (5.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_sidebars' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_text_boxes' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (5.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'pages_cms_thumbnails' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (120.4ms) DROP DATABASE IF EXISTS "dummy_test"  (1473.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.1ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.3ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (7.0ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (8.5ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.2ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.9ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (9.2ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.9ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.6ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.1ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.1ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.6ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.6ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (177.4ms) DROP DATABASE IF EXISTS "dummy_test"  (1129.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.5ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.8ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.0ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (10.1ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.2ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.3ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.7ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.4ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.1ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.7ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (118.9ms) DROP DATABASE IF EXISTS "dummy_test"  (1033.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.5ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.9ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.6ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (120.6ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.0ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.0ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.6ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (8.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (3.1ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.8ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.5ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.0ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (191.5ms) DROP DATABASE IF EXISTS "dummy_test"  (1456.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.5ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.4ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.2ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.6ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.1ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (7.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.4ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.0ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.9ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (34.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (14.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (19.7ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.2ms) ROLLBACK  (4.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.2ms) ROLLBACK  (4.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (7.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.2ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:55', '2015-06-15 16:55:55', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:55', '2015-06-15 16:55:55', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:56', '2015-06-15 16:55:56', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:55:56', '2015-06-15 16:55:56', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:55:56', '2015-06-15 16:55:56', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:55:56', '2015-06-15 16:55:56') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 1, '2015-06-15 16:55:56', '2015-06-15 16:55:56', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (11.7ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.2ms) ROLLBACK  (2.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.2ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (8.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (1.0ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.2ms) ROLLBACK  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:27', '2015-06-15 16:56:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:27', '2015-06-15 16:56:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (1.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374) PG::UndefinedColumn: ERROR: column "links" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("links", "content", "conte... ^ : INSERT INTO "pages_cms_sidebars" ("links", "content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyText', '

hello

', 2, '2015-06-15 16:56:28', '2015-06-15 16:56:28', 298486374)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:56:44', '2015-06-15 16:56:44') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:56:44', '2015-06-15 16:56:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:56:44', '2015-06-15 16:56:44') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:56:44', '2015-06-15 16:56:44') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:56:44', '2015-06-15 16:56:44') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:56:44', '2015-06-15 16:56:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 16:56:44', '2015-06-15 16:56:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.6ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 16:56:44', '2015-06-15 16:56:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:56:44', '2015-06-15 16:56:44', 298486374)  (1.0ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML Completed 500 Internal Server Error in 56ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (30.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 16:56:44.977476"], ["updated_at", "2015-06-15 16:56:44.977476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:58:25', '2015-06-15 16:58:25') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:58:25', '2015-06-15 16:58:25', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (19.9ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:58:25', '2015-06-15 16:58:25') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.6ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:58:25', '2015-06-15 16:58:25') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:58:25', '2015-06-15 16:58:25') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (10.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:58:25', '2015-06-15 16:58:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 16:58:25', '2015-06-15 16:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 16:58:25', '2015-06-15 16:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:58:25', '2015-06-15 16:58:25', 298486374)  (1.1ms) COMMIT  (2.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 16:58:26.207287"], ["updated_at", "2015-06-15 16:58:26.207287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Completed 500 Internal Server Error in 103ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 16:59:49', '2015-06-15 16:59:49') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 16:59:49', '2015-06-15 16:59:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (19.7ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 16:59:49', '2015-06-15 16:59:49') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 16:59:49', '2015-06-15 16:59:49') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 16:59:49', '2015-06-15 16:59:49') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 16:59:49', '2015-06-15 16:59:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 16:59:49', '2015-06-15 16:59:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 16:59:49', '2015-06-15 16:59:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 16:59:49', '2015-06-15 16:59:49', 298486374)  (1.3ms) COMMIT  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 16:59:49.770244"], ["updated_at", "2015-06-15 16:59:49.770244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 16:59:49.781641"], ["updated_at", "2015-06-15 16:59:49.781641"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 16:59:50.269630"], ["updated_at", "2015-06-15 16:59:50.269630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 16:59:50.286669"], ["updated_at", "2015-06-15 16:59:50.286669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.7ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 16:59:50.610752"], ["updated_at", "2015-06-15 16:59:50.610752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 16:59:50.621392"], ["updated_at", "2015-06-15 16:59:50.621392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:01:17', '2015-06-15 17:01:17') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:01:17', '2015-06-15 17:01:17', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:01:17', '2015-06-15 17:01:17') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:01:17', '2015-06-15 17:01:17') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:01:17', '2015-06-15 17:01:17') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:01:17', '2015-06-15 17:01:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:01:17', '2015-06-15 17:01:17', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:01:17', '2015-06-15 17:01:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:01:17', '2015-06-15 17:01:17', 298486374)  (2.4ms) COMMIT  (2.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:01:17.869999"], ["updated_at", "2015-06-15 17:01:17.869999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:17.926295"], ["updated_at", "2015-06-15 17:01:17.926295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:17.937382"], ["updated_at", "2015-06-15 17:01:17.937382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:01:18.149980"], ["updated_at", "2015-06-15 17:01:18.149980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:18.165039"], ["updated_at", "2015-06-15 17:01:18.165039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:18.498442"], ["updated_at", "2015-06-15 17:01:18.498442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.9ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:01:48', '2015-06-15 17:01:48') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:01:48', '2015-06-15 17:01:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:01:48', '2015-06-15 17:01:48') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:01:48', '2015-06-15 17:01:48') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:01:48', '2015-06-15 17:01:48') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:01:48', '2015-06-15 17:01:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:01:48', '2015-06-15 17:01:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:01:48', '2015-06-15 17:01:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:01:48', '2015-06-15 17:01:48', 298486374)  (1.1ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (148.2ms) Rendered pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (159.8ms) Completed 500 Internal Server Error in 489ms (ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.9ms) Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (5.0ms) Rendered pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (7.9ms) Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:49.448122"], ["updated_at", "2015-06-15 17:01:49.448122"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:49.475320"], ["updated_at", "2015-06-15 17:01:49.475320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered pages_cms/admin/pages/_page_block_fields.html.haml (55.4ms) Rendered pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (80.2ms) Completed 500 Internal Server Error in 148ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (66.0ms) Completed 500 Internal Server Error in 73ms (ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:01:49.805712"], ["updated_at", "2015-06-15 17:01:49.805712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:01:49.963514"], ["updated_at", "2015-06-15 17:01:49.963514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:49.976313"], ["updated_at", "2015-06-15 17:01:49.976313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:01:49.987878"], ["updated_at", "2015-06-15 17:01:49.987878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (28.9ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (23.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:02:55', '2015-06-15 17:02:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:02:55', '2015-06-15 17:02:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:02:55', '2015-06-15 17:02:55') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:02:55', '2015-06-15 17:02:55') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:02:55', '2015-06-15 17:02:55') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:02:55', '2015-06-15 17:02:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:02:55', '2015-06-15 17:02:55', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:02:55', '2015-06-15 17:02:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:02:55', '2015-06-15 17:02:55', 298486374)  (4.2ms) COMMIT  (7.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:02:55.365594"], ["updated_at", "2015-06-15 17:02:55.365594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (31.0ms) Completed 500 Internal Server Error in 379ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (129.4ms) Rendered pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (192.7ms) Completed 500 Internal Server Error in 232ms (ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (4.2ms) Rendered pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (6.6ms) Completed 500 Internal Server Error in 29ms (ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.0ms) Completed 500 Internal Server Error in 64ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:02:56.699405"], ["updated_at", "2015-06-15 17:02:56.699405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:02:56.968345"], ["updated_at", "2015-06-15 17:02:56.968345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered pages_cms/admin/pages/_page_block_fields.html.haml (97.1ms) Rendered pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (149.7ms) Completed 500 Internal Server Error in 196ms (ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (44.9ms) Completed 500 Internal Server Error in 77ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:02:57.363671"], ["updated_at", "2015-06-15 17:02:57.363671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:02:57.387926"], ["updated_at", "2015-06-15 17:02:57.387926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:02:57.401422"], ["updated_at", "2015-06-15 17:02:57.401422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:05:43', '2015-06-15 17:05:43') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:05:43', '2015-06-15 17:05:43', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:05:43', '2015-06-15 17:05:43') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:05:43', '2015-06-15 17:05:43') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:05:43', '2015-06-15 17:05:43') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:05:43', '2015-06-15 17:05:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:05:43', '2015-06-15 17:05:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:05:43', '2015-06-15 17:05:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:05:43', '2015-06-15 17:05:43', 298486374)  (1.1ms) COMMIT  (2.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (139.3ms) Rendered pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (149.5ms) Completed 500 Internal Server Error in 5601ms (ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.4ms) Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (5.1ms) Rendered pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (7.2ms) Completed 500 Internal Server Error in 21ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:05:49.948397"], ["updated_at", "2015-06-15 17:05:49.948397"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:05:49.970550"], ["updated_at", "2015-06-15 17:05:49.970550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:05:49.978265"], ["updated_at", "2015-06-15 17:05:49.978265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (1.0ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) ROLLBACK  (2.5ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.8ms) ROLLBACK  (0.4ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:05:50.020056"], ["updated_at", "2015-06-15 17:05:50.020056"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (1.4ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:05:50.042709"], ["updated_at", "2015-06-15 17:05:50.042709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered pages_cms/admin/pages/_page_block_fields.html.haml (43.4ms) Rendered pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (74.0ms) Completed 500 Internal Server Error in 186ms (ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (52.8ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (18.6ms) Completed 500 Internal Server Error in 59ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:05:50.731341"], ["updated_at", "2015-06-15 17:05:50.731341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:06:59', '2015-06-15 17:06:59') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:06:59', '2015-06-15 17:06:59', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (19.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:06:59', '2015-06-15 17:06:59') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.7ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:06:59', '2015-06-15 17:06:59') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:06:59', '2015-06-15 17:06:59') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (12.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:06:59', '2015-06-15 17:06:59', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:06:59', '2015-06-15 17:06:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:06:59', '2015-06-15 17:06:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:06:59', '2015-06-15 17:06:59', 298486374)  (1.0ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:06:59.462076"], ["updated_at", "2015-06-15 17:06:59.462076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered pages_cms/admin/pages/_page_block_fields.html.haml (37.8ms) Rendered pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (840.7ms) Completed 500 Internal Server Error in 953ms (ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (84.2ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (28.3ms) Completed 200 OK in 6618ms (Views: 6613.3ms | ActiveRecord: 4.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:07:07.385341"], ["updated_at", "2015-06-15 17:07:07.385341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:07:07.417035"], ["updated_at", "2015-06-15 17:07:07.417035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:07:07.425377"], ["updated_at", "2015-06-15 17:07:07.425377"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:07:07.447265"], ["updated_at", "2015-06-15 17:07:07.447265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (17.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.8ms) Completed 200 OK in 52ms (Views: 48.5ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:07:07.731769"], ["updated_at", "2015-06-15 17:07:07.731769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (6.8ms) Rendered pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (11.5ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 30ms (Views: 25.5ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (4.4ms) Rendered pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (6.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 18ms (Views: 16.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:08:01', '2015-06-15 17:08:01') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:08:01', '2015-06-15 17:08:01', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (19.7ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:08:01', '2015-06-15 17:08:01') Fixture Delete (0.6ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:08:01', '2015-06-15 17:08:01') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:08:01', '2015-06-15 17:08:01') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (2.7ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:08:01', '2015-06-15 17:08:01', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:08:01', '2015-06-15 17:08:01', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:08:01', '2015-06-15 17:08:01', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:08:01', '2015-06-15 17:08:01', 298486374)  (1.1ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (200.6ms) Rendered pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (212.4ms) PagesCms::Page Load (1.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (121.9ms) Completed 200 OK in 5515ms (Views: 5505.2ms | ActiveRecord: 3.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.9ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 32ms (Views: 29.6ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/articles/_form.html.haml (4.3ms) Rendered pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (6.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:08:06.997119"], ["updated_at", "2015-06-15 17:08:06.997119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:08:07.011254"], ["updated_at", "2015-06-15 17:08:07.011254"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:08:07.025253"], ["updated_at", "2015-06-15 17:08:07.025253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:08:07.042773"], ["updated_at", "2015-06-15 17:08:07.042773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (13.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:08:07.283720"], ["updated_at", "2015-06-15 17:08:07.283720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:08:07.298310"], ["updated_at", "2015-06-15 17:08:07.298310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.4ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered pages_cms/admin/pages/_jumbotron_fields.html.haml (5.6ms) Rendered pages_cms/admin/pages/_text_box_fields.html.haml (2.7ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered pages_cms/admin/pages/_thumbnail_fields.html.haml (6.3ms) Rendered pages_cms/admin/pages/_page_block_fields.html.haml (43.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered pages_cms/admin/pages/_jumbotron_fields.html.haml (2.6ms) Rendered pages_cms/admin/pages/_text_box_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered pages_cms/admin/pages/_thumbnail_fields.html.haml (2.9ms) Rendered pages_cms/admin/pages/_page_block_fields.html.haml (15.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (102.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 137ms (Views: 119.6ms | ActiveRecord: 8.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (15.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 28ms (Views: 23.8ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (7.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (19.1ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:38:27', '2015-06-15 17:38:27') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:38:27', '2015-06-15 17:38:27', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:38:27', '2015-06-15 17:38:27') Fixture Delete (1.1ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:38:27', '2015-06-15 17:38:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:38:27', '2015-06-15 17:38:27') Fixture Delete (1.2ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:38:27', '2015-06-15 17:38:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:38:27', '2015-06-15 17:38:27', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:38:27', '2015-06-15 17:38:27', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:38:27', '2015-06-15 17:38:27', 298486374)  (1.2ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (68.4ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (118.1ms) Completed 200 OK in 6289ms (Views: 6282.7ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:38:34.342625"], ["updated_at", "2015-06-15 17:38:34.342625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:38:34.439652"], ["updated_at", "2015-06-15 17:38:34.439652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:38:34.631094"], ["updated_at", "2015-06-15 17:38:34.631094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:38:34.653025"], ["updated_at", "2015-06-15 17:38:34.653025"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.6ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (2.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (87.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (13.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (187.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 251ms (Views: 206.0ms | ActiveRecord: 9.1ms)  (0.4ms) ROLLBACK  (0.6ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (18.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 53ms (Views: 48.0ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (27.4ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.7ms) Completed 200 OK in 59ms (Views: 53.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (8.9ms) PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.2ms) Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 3.1ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (14.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.2ms) Completed 200 OK in 51ms (Views: 48.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:38:35.198705"], ["updated_at", "2015-06-15 17:38:35.198705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:38:35.207410"], ["updated_at", "2015-06-15 17:38:35.207410"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 17:47:23', '2015-06-15 17:47:23') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 17:47:23', '2015-06-15 17:47:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (30.8ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 17:47:23', '2015-06-15 17:47:23') Fixture Delete (0.6ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:47:23', '2015-06-15 17:47:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 17:47:23', '2015-06-15 17:47:23', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 17:47:23', '2015-06-15 17:47:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 17:47:23', '2015-06-15 17:47:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 17:47:23', '2015-06-15 17:47:23') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 17:47:23', '2015-06-15 17:47:23') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (11.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 17:47:24', '2015-06-15 17:47:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 17:47:24', '2015-06-15 17:47:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:47:24', '2015-06-15 17:47:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 17:47:24', '2015-06-15 17:47:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (7.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 17:47:24', '2015-06-15 17:47:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 17:47:24', '2015-06-15 17:47:24', 298486374)  (1.1ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:47:24.082096"], ["updated_at", "2015-06-15 17:47:24.082096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (3.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (90.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (23.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (242.2ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (34.2ms) Completed 200 OK in 828ms (Views: 780.7ms | ActiveRecord: 8.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (17.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 39ms (Views: 34.6ms | ActiveRecord: 4.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:47:25.238137"], ["updated_at", "2015-06-15 17:47:25.238137"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:47:25.249776"], ["updated_at", "2015-06-15 17:47:25.249776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 17:47:25.258484"], ["updated_at", "2015-06-15 17:47:25.258484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (7.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (24.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 72ms (Views: 68.3ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 41ms (Views: 37.8ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (6.3ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.8ms) Completed 200 OK in 30ms (Views: 26.3ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (15.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:47:25.773448"], ["updated_at", "2015-06-15 17:47:25.773448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (1.2ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 17:47:25.803282"], ["updated_at", "2015-06-15 17:47:25.803282"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (19.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (8.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 18:42:35', '2015-06-15 18:42:35') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 18:42:35', '2015-06-15 18:42:35', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 18:42:35', '2015-06-15 18:42:35') Fixture Delete (0.6ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 18:42:35', '2015-06-15 18:42:35') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 18:42:35', '2015-06-15 18:42:35') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 18:42:35', '2015-06-15 18:42:35', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 18:42:35', '2015-06-15 18:42:35', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 18:42:35', '2015-06-15 18:42:35', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 18:42:35', '2015-06-15 18:42:35', 298486374)  (1.2ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (16.3ms) PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (126.7ms) Completed 200 OK in 7054ms (Views: 7050.8ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (135.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (155.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 184ms (Views: 180.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (4.9ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 18:42:43.061809"], ["updated_at", "2015-06-15 18:42:43.061809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 18:42:43.070913"], ["updated_at", "2015-06-15 18:42:43.070913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 18:42:43.081694"], ["updated_at", "2015-06-15 18:42:43.081694"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (1.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (97.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (12.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (200.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.3ms) Completed 200 OK in 253ms (Views: 217.9ms | ActiveRecord: 8.3ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (14.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 34ms (Views: 29.3ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 18:42:43.425908"], ["updated_at", "2015-06-15 18:42:43.425908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 18:42:43.431656"], ["updated_at", "2015-06-15 18:42:43.431656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (24.7ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 54ms (Views: 51.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 18:42:43.516305"], ["updated_at", "2015-06-15 18:42:43.516305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (7.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (51.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (19.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (1.0ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:06:48', '2015-06-15 22:06:48') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:06:48', '2015-06-15 22:06:48', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:06:48', '2015-06-15 22:06:48') Fixture Delete (0.6ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:06:48', '2015-06-15 22:06:48') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:06:48', '2015-06-15 22:06:48') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:06:48', '2015-06-15 22:06:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:06:48', '2015-06-15 22:06:48', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:06:48', '2015-06-15 22:06:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:06:48', '2015-06-15 22:06:48', 298486374)  (1.3ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (44.1ms) Completed 500 Internal Server Error in 6043ms (ActiveRecord: 0.8ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (121.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (183.7ms) Completed 500 Internal Server Error in 229ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.9ms) Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (4.5ms) Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (12.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.5ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (37.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (88.2ms) Completed 500 Internal Server Error in 162ms (ActiveRecord: 15.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (45.7ms) Completed 500 Internal Server Error in 74ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (24.9ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:06:56.270477"], ["updated_at", "2015-06-15 22:06:56.270477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (11.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:14:31', '2015-06-15 22:14:31') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:14:31', '2015-06-15 22:14:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (16.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:14:31', '2015-06-15 22:14:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:14:31', '2015-06-15 22:14:31') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:14:31', '2015-06-15 22:14:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:14:31', '2015-06-15 22:14:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:14:31', '2015-06-15 22:14:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.7ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:14:31', '2015-06-15 22:14:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:14:31', '2015-06-15 22:14:31', 298486374)  (20.9ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (26.8ms) PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (159.2ms) Completed 200 OK in 7064ms (Views: 7061.0ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (47.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (67.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 97ms (Views: 94.3ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (4.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.9ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.5ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.5ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (3.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (161.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (12.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (1.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (402.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.5ms) Completed 200 OK in 476ms (Views: 436.1ms | ActiveRecord: 9.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (14.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.8ms) Completed 200 OK in 55ms (Views: 51.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 59ms (Views: 57.0ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:14:40.011567"], ["updated_at", "2015-06-15 22:14:40.011567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:16:08', '2015-06-15 22:16:08') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:16:08', '2015-06-15 22:16:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:16:08', '2015-06-15 22:16:08') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:16:08', '2015-06-15 22:16:08') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:16:08', '2015-06-15 22:16:08') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:16:08', '2015-06-15 22:16:08', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:16:08', '2015-06-15 22:16:08', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:16:08', '2015-06-15 22:16:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:16:08', '2015-06-15 22:16:08', 298486374)  (1.5ms) COMMIT  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.5ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (3.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (112.7ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (35.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (1.0ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (555.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (63.3ms) Completed 200 OK in 993ms (Views: 946.4ms | ActiveRecord: 9.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (15.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 44ms (Views: 40.4ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:16:09.893343"], ["updated_at", "2015-06-15 22:16:09.893343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (15.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 39ms (Views: 36.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (1.0ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (15.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (32.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 62ms (Views: 57.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 43ms (Views: 40.4ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (7.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 32ms (Views: 30.1ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (7.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:17:24', '2015-06-15 22:17:24') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:17:24', '2015-06-15 22:17:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (18.1ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:17:24', '2015-06-15 22:17:24') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:17:24', '2015-06-15 22:17:24') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:17:24', '2015-06-15 22:17:24') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:17:24', '2015-06-15 22:17:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:17:24', '2015-06-15 22:17:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (16.9ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (12.6ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:17:24', '2015-06-15 22:17:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:17:24', '2015-06-15 22:17:24', 298486374)  (9.1ms) COMMIT  (4.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:17:24.869758"], ["updated_at", "2015-06-15 22:17:24.869758"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:17:24.965855"], ["updated_at", "2015-06-15 22:17:24.965855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (44.1ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (108.7ms) Completed 200 OK in 651ms (Views: 645.2ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 22:17:25.906195"], ["updated_at", "2015-06-15 22:17:25.906195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.7ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (29.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.2ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (145.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (12.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (302.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 342ms (Views: 326.0ms | ActiveRecord: 9.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (19.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) Completed 200 OK in 39ms (Views: 34.9ms | ActiveRecord: 3.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:17:26.326181"], ["updated_at", "2015-06-15 22:17:26.326181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:17:26.331136"], ["updated_at", "2015-06-15 22:17:26.331136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:17:26.489123"], ["updated_at", "2015-06-15 22:17:26.489123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (7.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (22.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 55ms (Views: 50.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (6.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (14.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 45ms (Views: 42.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (11.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.9ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:30:42', '2015-06-15 22:30:42') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:30:42', '2015-06-15 22:30:42', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (157.9ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:30:42', '2015-06-15 22:30:42') Fixture Delete (0.8ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:30:42', '2015-06-15 22:30:42') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:30:42', '2015-06-15 22:30:42') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:30:42', '2015-06-15 22:30:42', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:30:42', '2015-06-15 22:30:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.7ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.5ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:30:42', '2015-06-15 22:30:42', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:30:42', '2015-06-15 22:30:42', 298486374)  (1.3ms) COMMIT  (4.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (147.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (194.8ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (95.2ms) Completed 200 OK in 1141ms (Views: 1127.9ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 33ms (Views: 30.1ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (6.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 31ms (Views: 28.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:30:44.239261"], ["updated_at", "2015-06-15 22:30:44.239261"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 22:30:44.258070"], ["updated_at", "2015-06-15 22:30:44.258070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:30:44.278071"], ["updated_at", "2015-06-15 22:30:44.278071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 51ms (Views: 49.1ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (2.7ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (133.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (13.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (244.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 296ms (Views: 261.1ms | ActiveRecord: 9.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (18.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 40ms (Views: 35.9ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:30:44.712253"], ["updated_at", "2015-06-15 22:30:44.712253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:30:44.717638"], ["updated_at", "2015-06-15 22:30:44.717638"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:30:44.874156"], ["updated_at", "2015-06-15 22:30:44.874156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (32.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (22.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:45:36', '2015-06-15 22:45:36') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:45:36', '2015-06-15 22:45:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (1.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:45:36', '2015-06-15 22:45:36') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:45:36', '2015-06-15 22:45:36') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:45:36', '2015-06-15 22:45:36') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:45:36', '2015-06-15 22:45:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:45:36', '2015-06-15 22:45:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (10.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (1.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:45:36', '2015-06-15 22:45:36', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:45:36', '2015-06-15 22:45:36', 298486374)  (1.6ms) COMMIT  (2.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.3ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (67.1ms) PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (117.4ms) Completed 200 OK in 737ms (Views: 729.4ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:45:37.269103"], ["updated_at", "2015-06-15 22:45:37.269103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:45:37.378158"], ["updated_at", "2015-06-15 22:45:37.378158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show ---------------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:45:37.498295"], ["updated_at", "2015-06-15 22:45:37.498295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.7ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.6ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.5ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (7.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (2.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (98.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (14.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (1.1ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (260.9ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.4ms) Completed 200 OK in 320ms (Views: 280.0ms | ActiveRecord: 10.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (18.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 45ms (Views: 40.3ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:45:38.100669"], ["updated_at", "2015-06-15 22:45:38.100669"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (44.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 120ms (Views: 88.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (17.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 43ms (Views: 40.6ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (3.1ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (18.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (23.6ms) PagesCms::Page Load (2.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.5ms) Completed 200 OK in 52ms (Views: 44.3ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:45:38.402085"], ["updated_at", "2015-06-15 22:45:38.402085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 22:45:38.408245"], ["updated_at", "2015-06-15 22:45:38.408245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.9ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:48:09', '2015-06-15 22:48:09') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:48:09', '2015-06-15 22:48:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:48:09', '2015-06-15 22:48:09') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:48:09', '2015-06-15 22:48:09') Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:48:09', '2015-06-15 22:48:09') Fixture Delete (17.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:48:09', '2015-06-15 22:48:09', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:48:09', '2015-06-15 22:48:09', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:48:09', '2015-06-15 22:48:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:48:09', '2015-06-15 22:48:09', 298486374)  (1.2ms) COMMIT  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (7.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (49.5ms) Completed 200 OK in 655ms (Views: 648.7ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:48:49', '2015-06-15 22:48:49') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:48:49', '2015-06-15 22:48:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:48:49', '2015-06-15 22:48:49') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:48:49', '2015-06-15 22:48:49') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:48:49', '2015-06-15 22:48:49') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:48:49', '2015-06-15 22:48:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:48:49', '2015-06-15 22:48:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (18.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:48:49', '2015-06-15 22:48:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:48:49', '2015-06-15 22:48:49', 298486374)  (1.8ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (62.6ms) PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (117.6ms) Completed 200 OK in 796ms (Views: 792.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (8.1ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (25.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (1.0ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:49:26', '2015-06-15 22:49:26') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:49:26', '2015-06-15 22:49:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:49:26', '2015-06-15 22:49:26') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:49:26', '2015-06-15 22:49:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:49:26', '2015-06-15 22:49:26') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:49:26', '2015-06-15 22:49:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:49:26', '2015-06-15 22:49:26', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (19.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:49:26', '2015-06-15 22:49:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:49:26', '2015-06-15 22:49:26', 298486374)  (1.2ms) COMMIT  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (1.0ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:50:10', '2015-06-15 22:50:10') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:50:10', '2015-06-15 22:50:10', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:50:10', '2015-06-15 22:50:10') Fixture Delete (0.6ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:50:10', '2015-06-15 22:50:10') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:50:10', '2015-06-15 22:50:10') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:50:10', '2015-06-15 22:50:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:50:10', '2015-06-15 22:50:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.4ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:50:10', '2015-06-15 22:50:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:50:10', '2015-06-15 22:50:10', 298486374)  (0.9ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.9ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Jumbotron Load (0.5ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.6ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (32.7ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (56.4ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (68.1ms) Completed 200 OK in 707ms (Views: 648.1ms | ActiveRecord: 5.8ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-15 22:50:33', '2015-06-15 22:50:33') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-15 22:50:33', '2015-06-15 22:50:33', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-15 22:50:33', '2015-06-15 22:50:33') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "content_rendered", "created_at", "updated_at", "id") VALUES (1, 'string', '

hello

', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-15 22:50:33', '2015-06-15 22:50:33') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-15 22:50:33', '2015-06-15 22:50:33') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-15 22:50:33', '2015-06-15 22:50:33', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 2, '2015-06-15 22:50:33', '2015-06-15 22:50:33', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (NULL, '

hello

', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 298486374) Fixture Delete (1.3ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.6ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, '

hello

', 'string', '1', 1, '2015-06-15 22:50:33', '2015-06-15 22:50:33', 980190962) Fixture Insert (0.7ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-15 22:50:33', '2015-06-15 22:50:33', 298486374)  (1.8ms) COMMIT  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (148.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (173.5ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (73.1ms) Completed 200 OK in 740ms (Views: 733.9ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.8ms) Completed 200 OK in 44ms (Views: 41.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (6.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 51ms (Views: 48.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:50:35.201616"], ["updated_at", "2015-06-15 22:50:35.201616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "title"], ["content_rendered", "

content

\n"], ["content", "content"], ["tags", "{tag,more}"], ["created_at", "2015-06-15 22:50:35.216348"], ["updated_at", "2015-06-15 22:50:35.216348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:50:35.442014"], ["updated_at", "2015-06-15 22:50:35.442014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:50:35.458910"], ["updated_at", "2015-06-15 22:50:35.458910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.5ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.5ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (2.8ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (99.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (2.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (15.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (194.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.8ms) Completed 200 OK in 243ms (Views: 208.6ms | ActiveRecord: 8.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (16.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.6ms) Completed 200 OK in 44ms (Views: 39.8ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:50:35.769320"], ["updated_at", "2015-06-15 22:50:35.769320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-15 22:50:35.779714"], ["updated_at", "2015-06-15 22:50:35.779714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (23.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.0ms) Completed 200 OK in 56ms (Views: 54.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 31ms (Views: 28.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Jumbotron Load (0.3ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (10.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (26.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.5ms) Completed 200 OK in 65ms (Views: 57.7ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (318.4ms) DROP DATABASE IF EXISTS "dummy_test"  (1412.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (67.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (70.5ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "content_rendered" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.5ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.6ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (24.4ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "content_rendered" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (12.3ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.8ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "content_rendered" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (25.8ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (5.4ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.7ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.6ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616171349') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (367.9ms) DROP DATABASE IF EXISTS "dummy_test"  (1323.2ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (982.9ms) DROP DATABASE IF EXISTS "dummy_test"  (1424.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (63.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.8ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.7ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.0ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.1ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.3ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "add_links" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (8.7ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (10.8ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (4.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (4.1ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.5ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.2ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150617002507') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (225.4ms) DROP DATABASE IF EXISTS "dummy_test"  (2723.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.4ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (7.5ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.9ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.3ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "add_links" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.7ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (5.1ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.2ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.6ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (4.0ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150617002507') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (206.0ms) DROP DATABASE IF EXISTS "dummy_test"  (1981.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.8ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.5ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (7.7ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.6ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.2ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" character varying, "name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.8ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" character varying, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.8ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "add_links" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (7.0ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (14.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.1ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.7ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.5ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.3ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.9ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (20.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (17.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.6ms) ROLLBACK  (4.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.5ms) ROLLBACK  (2.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.1ms) ROLLBACK  (2.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.1ms) ROLLBACK  (4.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:50', '2015-06-17 01:16:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:50', '2015-06-17 01:16:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:50', '2015-06-17 01:16:50', 980190962)  (0.1ms) ROLLBACK  (18.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (2.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (2.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:16:51', '2015-06-17 01:16:51', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:16:51', '2015-06-17 01:16:51') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_jumbotrons" does not exist LINE 1: ...ERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_r... ^ : INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content_rendered", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:16:51', '2015-06-17 01:16:51', 980190962)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (1.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.3ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (2.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (1.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:06', '2015-06-17 01:18:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_sidebars" does not exist LINE 1: INSERT INTO "pages_cms_sidebars" ("content", "content_render... ^ : INSERT INTO "pages_cms_sidebars" ("content", "content_rendered", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', '

hello

', 1, '2015-06-17 01:18:06', '2015-06-17 01:18:06', 980190962)  (0.1ms) ROLLBACK  (2.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:18:23', '2015-06-17 01:18:23') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:18:23', '2015-06-17 01:18:23', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:18:23', '2015-06-17 01:18:23') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:18:23', '2015-06-17 01:18:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:18:23', '2015-06-17 01:18:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:18:23', '2015-06-17 01:18:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:18:23', '2015-06-17 01:18:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:18:23', '2015-06-17 01:18:23') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:18:23', '2015-06-17 01:18:23') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 01:18:23', '2015-06-17 01:18:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 01:18:23', '2015-06-17 01:18:23', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:18:23', '2015-06-17 01:18:23', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 01:18:23', '2015-06-17 01:18:23', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.6ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, 'string', '1', 1, '2015-06-17 01:18:23', '2015-06-17 01:18:23', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:18:23', '2015-06-17 01:18:23', 298486374)  (1.2ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (443.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (450.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (510.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (8.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (36.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (787.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (46.4ms) Completed 200 OK in 6716ms (Views: 6665.4ms | ActiveRecord: 13.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (12.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 39ms (Views: 35.1ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (17.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (8.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 01:18:30.401765"], ["updated_at", "2015-06-17 01:18:30.401765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Jumbotron Load (0.3ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (7.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (12.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 26ms (Views: 19.6ms | ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (16.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 41ms (Views: 39.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (24.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 52ms (Views: 49.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (22.2ms) Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 33ms (Views: 31.2ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (3.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (30.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 54ms (Views: 50.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (11.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:19:21', '2015-06-17 01:19:21') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:19:21', '2015-06-17 01:19:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:19:21', '2015-06-17 01:19:21') Fixture Delete (0.5ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.3ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:19:21', '2015-06-17 01:19:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:19:21', '2015-06-17 01:19:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', '1', '2015-06-17 01:19:21', '2015-06-17 01:19:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', '2', '2015-06-17 01:19:21', '2015-06-17 01:19:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:19:21', '2015-06-17 01:19:21') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:19:21', '2015-06-17 01:19:21') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 01:19:21', '2015-06-17 01:19:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 01:19:21', '2015-06-17 01:19:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:19:21', '2015-06-17 01:19:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 01:19:21', '2015-06-17 01:19:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, 'string', '1', 1, '2015-06-17 01:19:21', '2015-06-17 01:19:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:19:21', '2015-06-17 01:19:21', 298486374)  (1.3ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Jumbotron Load (0.5ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (24.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (34.5ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (23.5ms) Completed 200 OK in 307ms (Views: 265.5ms | ActiveRecord: 4.9ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (17.0ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.5ms) Completed 200 OK in 41ms (Views: 31.4ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 01:19:22.344330"], ["updated_at", "2015-06-17 01:19:22.344330"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (23.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (48.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (53.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 67ms (Views: 62.9ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.4ms) Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (17.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (20.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (17.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (16.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (99.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (15.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (11.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (47.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (203.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 223ms (Views: 208.0ms | ActiveRecord: 11.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.9ms) Completed 200 OK in 40ms (Views: 33.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (8.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (165.7ms) DROP DATABASE IF EXISTS "dummy_test"  (1090.4ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.3ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (6.5ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.7ms) CREATE TABLE "pages_cms_jumbotrons" ("id" serial primary key, "page_block_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.0ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (10.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.2ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "content" text, "add_links" text, "show" boolean DEFAULT 't', "use_instead" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (9.0ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.4ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.0ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.6ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.6ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 01:50:00', '2015-06-17 01:50:00') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 01:50:00', '2015-06-17 01:50:00') Fixture Delete (0.4ms) DELETE FROM "pages_cms_jumbotrons" Fixture Insert (0.4ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "created_at", "updated_at", "id") VALUES (1, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_jumbotrons" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, 'string', '2015-06-17 01:50:00', '2015-06-17 01:50:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 01:50:00', '2015-06-17 01:50:00') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 01:50:00', '2015-06-17 01:50:00') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:50:00', '2015-06-17 01:50:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_thumbnails" Fixture Insert (0.6ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content", "link", "image_id", "created_at", "updated_at", "id") VALUES (1, 'string', '1', 1, '2015-06-17 01:50:00', '2015-06-17 01:50:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_thumbnails" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 01:50:00', '2015-06-17 01:50:00', 298486374)  (1.0ms) COMMIT  (6.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_jumbotrons" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 01:50:00.635836"], ["updated_at", "2015-06-17 01:50:00.635836"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Jumbotron Load (0.3ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (28.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (54.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.8ms) Completed 200 OK in 600ms (Views: 540.8ms | ActiveRecord: 4.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Jumbotron Load (0.4ms) SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.2ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (53.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (78.9ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (121.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (6.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.2ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (23.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (296.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 308ms (Views: 294.5ms | ActiveRecord: 12.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (35.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 55ms (Views: 52.0ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (30.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 67ms (Views: 63.0ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (10.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 20ms (Views: 17.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.1ms) PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.1ms) Completed 200 OK in 33ms (Views: 30.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (16.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 38ms (Views: 35.9ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (27.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.7ms) Completed 200 OK in 63ms (Views: 60.3ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.3ms) Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (178.6ms) DROP DATABASE IF EXISTS "dummy_test"  (1101.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (55.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.1ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (5.5ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.7ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (6.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (9.4ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.3ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "links" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.6ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (9.8ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.0ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (6.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.7ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.8ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.4ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.5ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.7ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (30.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.5ms) BEGIN Fixture Delete (1.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (1.0ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.6ms) ROLLBACK  (7.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (7.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (4.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (4.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:26', '2015-06-17 14:26:26', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (4.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.2ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27') Fixture Delete (0.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:26:27', '2015-06-17 14:26:27', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_slider_elements" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_slider_element... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_slider_elements"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:27:53', '2015-06-17 14:27:53') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:27:53', '2015-06-17 14:27:53') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:27:53', '2015-06-17 14:27:53', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:27:53', '2015-06-17 14:27:53', 298486374)  (0.8ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (17.6ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:27:53.930688"], ["updated_at", "2015-06-17 14:27:53.930688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (223.7ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (174.1ms) Completed 200 OK in 7183ms (Views: 7175.7ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 32ms (Views: 28.1ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (18.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 72ms (Views: 69.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.9ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.6ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.6ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (37.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (61.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.7ms) Completed 200 OK in 99ms (Views: 73.5ms | ActiveRecord: 9.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.7ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (21.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (36.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (6.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (175.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (1.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (29.5ms) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (1.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1173.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.5ms) Completed 200 OK in 1204ms (Views: 1184.5ms | ActiveRecord: 17.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.3ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 56ms (Views: 52.4ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (17.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (61.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 93ms (Views: 89.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (14.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 78ms (Views: 76.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (10.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 38ms (Views: 34.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (19.2ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:33:13', '2015-06-17 14:33:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:33:13', '2015-06-17 14:33:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:33:13', '2015-06-17 14:33:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:33:13', '2015-06-17 14:33:13', 298486374)  (1.3ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (237.0ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (86.3ms) Completed 200 OK in 791ms (Views: 780.8ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434551594_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 14:33:14.898835"], ["updated_at", "2015-06-17 14:33:14.898835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 103ms (ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (59.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (18.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:41:41', '2015-06-17 14:41:41') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:41:41', '2015-06-17 14:41:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:41:42', '2015-06-17 14:41:42') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:41:42', '2015-06-17 14:41:42') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:41:42', '2015-06-17 14:41:42', 298486374)  (1.2ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (5.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:41:42.696220"], ["updated_at", "2015-06-17 14:41:42.696220"]] SQL (2.1ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:41:42.705861"], ["updated_at", "2015-06-17 14:41:42.705861"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:41:42.711994"], ["updated_at", "2015-06-17 14:41:42.711994"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:41:42.715085"], ["updated_at", "2015-06-17 14:41:42.715085"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:41:42.717253"], ["updated_at", "2015-06-17 14:41:42.717253"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:41:42.719655"], ["updated_at", "2015-06-17 14:41:42.719655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 427ms (ActiveRecord: 12.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.3ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.0ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (30.2ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (130.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (21.8ms) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (1.0ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (1.2ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (645.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (19.5ms) Completed 200 OK in 1073ms (Views: 1050.2ms | ActiveRecord: 18.2ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (46.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 79ms (Views: 73.9ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (50.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (20.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:42:51', '2015-06-17 14:42:51') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:42:51', '2015-06-17 14:42:51') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.1ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:42:51', '2015-06-17 14:42:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:42:51', '2015-06-17 14:42:51', 298486374)  (1.2ms) COMMIT  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:42:51.875475"], ["updated_at", "2015-06-17 14:42:51.875475"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:42:51.878043"], ["updated_at", "2015-06-17 14:42:51.878043"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:42:51.880387"], ["updated_at", "2015-06-17 14:42:51.880387"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:42:51.882732"], ["updated_at", "2015-06-17 14:42:51.882732"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:42:51.884802"], ["updated_at", "2015-06-17 14:42:51.884802"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:42:51.887232"], ["updated_at", "2015-06-17 14:42:51.887232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 395ms (ActiveRecord: 5.5ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (18.9ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.1ms) Completed 200 OK in 606ms (Views: 581.1ms | ActiveRecord: 4.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (3.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (1.2ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (19.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (39.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (163.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (18.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (43.8ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (468.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.6ms) Completed 200 OK in 513ms (Views: 484.8ms | ActiveRecord: 19.1ms)  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (46.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (30.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33') Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:44:33', '2015-06-17 14:44:33') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:44:33', '2015-06-17 14:44:33') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:44:33', '2015-06-17 14:44:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:44:33', '2015-06-17 14:44:33', 298486374)  (1.2ms) COMMIT  (2.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.8ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (15.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (27.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (153.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (33.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (33.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (65.6ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (916.0ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (28.1ms) Completed 200 OK in 1353ms (Views: 1295.8ms | ActiveRecord: 15.8ms)  (0.4ms) ROLLBACK  (0.4ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (17.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.6ms) Completed 200 OK in 40ms (Views: 36.0ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:44:35.402329"], ["updated_at", "2015-06-17 14:44:35.402329"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:44:35.405096"], ["updated_at", "2015-06-17 14:44:35.405096"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:44:35.407529"], ["updated_at", "2015-06-17 14:44:35.407529"]] SQL (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:44:35.410198"], ["updated_at", "2015-06-17 14:44:35.410198"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:44:35.414359"], ["updated_at", "2015-06-17 14:44:35.414359"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:44:35.416961"], ["updated_at", "2015-06-17 14:44:35.416961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 195ms (ActiveRecord: 5.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (192.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (33.2ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:45:46', '2015-06-17 14:45:46') Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:45:46', '2015-06-17 14:45:46', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:45:47', '2015-06-17 14:45:47') Fixture Delete (0.9ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:45:47', '2015-06-17 14:45:47') Fixture Delete (0.8ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:45:47', '2015-06-17 14:45:47', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:45:47', '2015-06-17 14:45:47', 298486374)  (1.0ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:45:47.846284"], ["updated_at", "2015-06-17 14:45:47.846284"]] SQL (1.1ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:45:47.848896"], ["updated_at", "2015-06-17 14:45:47.848896"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:45:47.851535"], ["updated_at", "2015-06-17 14:45:47.851535"]] SQL (23.7ms) INSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:45:47.854230"], ["updated_at", "2015-06-17 14:45:47.854230"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:45:47.879986"], ["updated_at", "2015-06-17 14:45:47.879986"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:45:47.882211"], ["updated_at", "2015-06-17 14:45:47.882211"]] SQL (0.9ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:45:47.884704"], ["updated_at", "2015-06-17 14:45:47.884704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 551ms (ActiveRecord: 31.5ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) ROLLBACK  (0.4ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (26.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (40.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (142.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.3ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (11.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (778.5ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (20.5ms) Completed 200 OK in 1211ms (Views: 1191.6ms | ActiveRecord: 13.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (33.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 62ms (Views: 56.1ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (1.0ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:46:10', '2015-06-17 14:46:10') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:46:10', '2015-06-17 14:46:10') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:46:10', '2015-06-17 14:46:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:46:11', '2015-06-17 14:46:11') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:46:11', '2015-06-17 14:46:11') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:46:11', '2015-06-17 14:46:11', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:46:11', '2015-06-17 14:46:11', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:11', '2015-06-17 14:46:11', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:11', '2015-06-17 14:46:11', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:46:11', '2015-06-17 14:46:11', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:11', '2015-06-17 14:46:11', 298486374)  (1.6ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (1.1ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:46:11.647875"], ["updated_at", "2015-06-17 14:46:11.647875"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:46:11.650207"], ["updated_at", "2015-06-17 14:46:11.650207"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:11.652265"], ["updated_at", "2015-06-17 14:46:11.652265"]] SQL (0.7ms) INSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:11.654226"], ["updated_at", "2015-06-17 14:46:11.654226"]] SQL (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:11.656348"], ["updated_at", "2015-06-17 14:46:11.656348"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:11.659049"], ["updated_at", "2015-06-17 14:46:11.659049"]] SQL (1.0ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:46:11.662336"], ["updated_at", "2015-06-17 14:46:11.662336"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 393ms (ActiveRecord: 7.4ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (43.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 599ms (Views: 569.3ms | ActiveRecord: 4.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (31.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (8.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (124.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (40.1ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (13.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.0ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (446.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 478ms (Views: 461.5ms | ActiveRecord: 12.9ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:46:57', '2015-06-17 14:46:57') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:46:57', '2015-06-17 14:46:57') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:46:57', '2015-06-17 14:46:57', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:46:57', '2015-06-17 14:46:57', 298486374)  (9.3ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (24.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (263.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (286.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (87.0ms) Completed 200 OK in 946ms (Views: 932.1ms | ActiveRecord: 4.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.2ms) Completed 200 OK in 35ms (Views: 31.8ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (2.0ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (14.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (18.1ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.8ms) Completed 200 OK in 41ms (Views: 33.7ms | ActiveRecord: 6.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434552418_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 14:46:58.425273"], ["updated_at", "2015-06-17 14:46:58.425273"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (40.8ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.4ms) Completed 200 OK in 74ms (Views: 70.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (75.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (111.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 225ms (Views: 131.2ms | ActiveRecord: 6.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (85.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 157ms (Views: 153.0ms | ActiveRecord: 3.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.5ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.1ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.8ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (12.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (23.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (241.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.8ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (30.2ms) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (1.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (15.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (547.7ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.1ms) Completed 200 OK in 583ms (Views: 564.2ms | ActiveRecord: 16.5ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:46:59.933959"], ["updated_at", "2015-06-17 14:46:59.933959"]] SQL (1.4ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:46:59.937713"], ["updated_at", "2015-06-17 14:46:59.937713"]] SQL (1.2ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:59.947368"], ["updated_at", "2015-06-17 14:46:59.947368"]] SQL (1.3ms) INSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:59.952259"], ["updated_at", "2015-06-17 14:46:59.952259"]] SQL (1.5ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:59.957014"], ["updated_at", "2015-06-17 14:46:59.957014"]] SQL (1.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:59.969874"], ["updated_at", "2015-06-17 14:46:59.969874"]] SQL (1.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:46:59.976607"], ["updated_at", "2015-06-17 14:46:59.976607"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 387ms (ActiveRecord: 10.2ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.7ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (1.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:47:00.037203"], ["updated_at", "2015-06-17 14:47:00.037203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (25.6ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.2ms) Completed 200 OK in 53ms (Views: 50.6ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 30ms (Views: 26.9ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:48:28', '2015-06-17 14:48:28') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:48:28', '2015-06-17 14:48:28') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (15.9ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:48:28', '2015-06-17 14:48:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:48:28', '2015-06-17 14:48:28', 298486374)  (1.1ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 14:48:28.859862"], ["updated_at", "2015-06-17 14:48:28.859862"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 35ms (ActiveRecord: 2.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (24.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (211.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (231.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (62.9ms) Completed 200 OK in 827ms (Views: 819.1ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (11.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 36ms (Views: 32.0ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (80.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.5ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:49:31', '2015-06-17 14:49:31') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:49:31', '2015-06-17 14:49:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:49:31', '2015-06-17 14:49:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:49:31', '2015-06-17 14:49:31', 298486374)  (29.7ms) COMMIT  (75.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (258.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 2225ms (Views: 2172.7ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.9ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.9ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (19.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (41.9ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (717.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.8ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.4ms) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (2573.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.0ms) Completed 200 OK in 2621ms (Views: 2571.5ms | ActiveRecord: 16.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:49:37.530630"], ["updated_at", "2015-06-17 14:49:37.530630"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:49:37.534335"], ["updated_at", "2015-06-17 14:49:37.534335"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:49:37.537231"], ["updated_at", "2015-06-17 14:49:37.537231"]] SQL (0.7ms) INSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:49:37.539835"], ["updated_at", "2015-06-17 14:49:37.539835"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:49:37.542421"], ["updated_at", "2015-06-17 14:49:37.542421"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:49:37.544749"], ["updated_at", "2015-06-17 14:49:37.544749"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:49:37.547381"], ["updated_at", "2015-06-17 14:49:37.547381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 321ms (ActiveRecord: 5.9ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434552577_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 14:49:37.617940"], ["updated_at", "2015-06-17 14:49:37.617940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 31ms (ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (42.9ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.2ms) Completed 200 OK in 215ms (Views: 212.5ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 14:49:37.923914"], ["updated_at", "2015-06-17 14:49:37.923914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 13ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (15.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 42ms (Views: 40.2ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (25.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (68.3ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 101ms (Views: 94.1ms | ActiveRecord: 4.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (12.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (15.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 29ms (Views: 25.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:49:38.126042"], ["updated_at", "2015-06-17 14:49:38.126042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (2.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (38.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:50:03', '2015-06-17 14:50:03') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:50:03', '2015-06-17 14:50:03') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:50:03', '2015-06-17 14:50:03', 298486374)  (1.0ms) COMMIT  (2.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434552603_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 14:50:03.625859"], ["updated_at", "2015-06-17 14:50:03.625859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 100ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (199.6ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (120.7ms) Completed 200 OK in 670ms (Views: 667.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (17.3ms) PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.0ms) Completed 200 OK in 44ms (Views: 40.4ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (79.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (101.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 129ms (Views: 124.0ms | ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (10.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.8ms) Completed 200 OK in 51ms (Views: 46.1ms | ActiveRecord: 4.4ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 14:50:04.567591"], ["updated_at", "2015-06-17 14:50:04.567591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:50:04.919329"], ["updated_at", "2015-06-17 14:50:04.919329"]] SQL (1.0ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 14:50:04.922470"], ["updated_at", "2015-06-17 14:50:04.922470"]] SQL (0.8ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:50:04.927299"], ["updated_at", "2015-06-17 14:50:04.927299"]] SQL (0.7ms) INSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:50:04.931033"], ["updated_at", "2015-06-17 14:50:04.931033"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:50:04.934853"], ["updated_at", "2015-06-17 14:50:04.934853"]] SQL (0.9ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:50:04.938151"], ["updated_at", "2015-06-17 14:50:04.938151"]] SQL (0.9ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:50:04.943472"], ["updated_at", "2015-06-17 14:50:04.943472"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 277ms (ActiveRecord: 8.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.7ms) ROLLBACK  (1.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.5ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.5ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (11.2ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (10.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (123.1ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (10.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (46.9ms) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (12.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (395.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (2.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.4ms) Completed 200 OK in 423ms (Views: 401.5ms | ActiveRecord: 16.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (38.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 64ms (Views: 59.1ms | ActiveRecord: 4.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:50:05.472764"], ["updated_at", "2015-06-17 14:50:05.472764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:51:18', '2015-06-17 14:51:18') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:51:18', '2015-06-17 14:51:18') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:51:18', '2015-06-17 14:51:18', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:51:18', '2015-06-17 14:51:18', 298486374)  (0.9ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434552678_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 14:51:18.862746"], ["updated_at", "2015-06-17 14:51:18.862746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 100ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (186.6ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (95.6ms) Completed 200 OK in 634ms (Views: 631.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (21.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 44ms (Views: 41.0ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (100.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (123.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 149ms (Views: 143.3ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (29.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (34.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (36.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 46ms (Views: 43.3ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 14:51:19.782570"], ["updated_at", "2015-06-17 14:51:19.782570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.0ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.8ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (52.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 68ms (Views: 66.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 30ms (Views: 26.8ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.5ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:51:20.093024"], ["updated_at", "2015-06-17 14:51:20.093024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (32.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (47.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 106ms (Views: 62.7ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:51:20.316450"], ["updated_at", "2015-06-17 14:51:20.316450"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-17 14:51:20.318565"], ["updated_at", "2015-06-17 14:51:20.318565"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:51:20.321087"], ["updated_at", "2015-06-17 14:51:20.321087"]] SQL (0.8ms) INSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:51:20.323578"], ["updated_at", "2015-06-17 14:51:20.323578"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:51:20.326235"], ["updated_at", "2015-06-17 14:51:20.326235"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:51:20.328765"], ["updated_at", "2015-06-17 14:51:20.328765"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-17 14:51:20.331755"], ["updated_at", "2015-06-17 14:51:20.331755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 56ms (ActiveRecord: 6.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (9.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.0ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (90.3ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (20.5ms) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (315.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 332ms (Views: 317.6ms | ActiveRecord: 12.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (15.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 39ms (Views: 35.6ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (55.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (15.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 14:58:40', '2015-06-17 14:58:40') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 14:58:40', '2015-06-17 14:58:40') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 14:58:40', '2015-06-17 14:58:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 14:58:40', '2015-06-17 14:58:40', 298486374)  (1.5ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434553121_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 14:58:41.202690"], ["updated_at", "2015-06-17 14:58:41.202690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 98ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (233.8ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (105.9ms) Completed 200 OK in 1019ms (Views: 1015.7ms | ActiveRecord: 2.9ms)  (1.8ms) ROLLBACK  (0.3ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (1.0ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (2.5ms) ROLLBACK  (0.9ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (43.4ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.4ms) Completed 200 OK in 73ms (Views: 69.5ms | ActiveRecord: 3.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 30ms (Views: 27.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:58:42.641003"], ["updated_at", "2015-06-17 14:58:42.641003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (1.0ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (3.9ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.7ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.5ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (48.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (60.4ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 116ms (Views: 77.0ms | ActiveRecord: 11.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}} Unpermitted parameter: 0  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 14:58:42.893967"], ["updated_at", "2015-06-17 14:58:42.893967"]] SQL (1.1ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-17 14:58:42.897786"], ["updated_at", "2015-06-17 14:58:42.897786"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 19ms (ActiveRecord: 2.6ms)  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (23.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (45.8ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (158.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (10.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (33.1ms) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (467.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 484ms (Views: 468.4ms | ActiveRecord: 12.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (16.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.9ms) Completed 200 OK in 45ms (Views: 41.4ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (16.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 41ms (Views: 37.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (14.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (57.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.2ms) Completed 200 OK in 74ms (Views: 68.7ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 14:58:43.607994"], ["updated_at", "2015-06-17 14:58:43.607994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.6ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (28.3ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 51ms (Views: 48.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (58.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (33.1ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 15:00:34', '2015-06-17 15:00:34') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 15:00:34', '2015-06-17 15:00:34') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.7ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 15:00:34', '2015-06-17 15:00:34', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:00:34', '2015-06-17 15:00:34', 298486374)  (1.0ms) COMMIT  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"

a paragraph

"}}}}}} Unpermitted parameter: 0  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 15:00:35.028459"], ["updated_at", "2015-06-17 15:00:35.028459"]] SQL (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 15:00:35.030757"], ["updated_at", "2015-06-17 15:00:35.030757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 349ms (ActiveRecord: 2.8ms)  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (19.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (40.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (116.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.4ms) PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (26.2ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (658.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.9ms) Completed 200 OK in 1369ms (Views: 1350.1ms | ActiveRecord: 13.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (32.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 64ms (Views: 60.4ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 15:00:36.496900"], ["updated_at", "2015-06-17 15:00:36.496900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (1.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434553236_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 15:00:36.559319"], ["updated_at", "2015-06-17 15:00:36.559319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (44.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.9ms) Completed 200 OK in 77ms (Views: 74.5ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (16.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (24.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 67ms (Views: 49.7ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (14.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.5ms) Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 15:00:36.808872"], ["updated_at", "2015-06-17 15:00:36.808872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (11.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (22.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (1.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 45ms (Views: 31.3ms | ActiveRecord: 7.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (3.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 34ms (Views: 28.5ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (15.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (8.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (13.7ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (12.9ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 15:03:19', '2015-06-17 15:03:19') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19') Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 15:03:19', '2015-06-17 15:03:19') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:03:19', '2015-06-17 15:03:19', 298486374)  (1.2ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (161.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.8ms) Completed 200 OK in 857ms (Views: 794.5ms | ActiveRecord: 4.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (1.1ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.7ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.8ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (30.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (16.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (226.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.0ms) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (743.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.6ms) Completed 200 OK in 791ms (Views: 740.8ms | ActiveRecord: 17.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"content"=>"something", "image_id"=>"1", "link"=>"/thing"}}}}}} Unpermitted parameter: 0  (0.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 15:03:21.533428"], ["updated_at", "2015-06-17 15:03:21.533428"]] SQL (1.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 15:03:21.537153"], ["updated_at", "2015-06-17 15:03:21.537153"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 218ms (ActiveRecord: 3.5ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (17.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 15:07:00', '2015-06-17 15:07:00') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 15:07:00', '2015-06-17 15:07:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:07:00', '2015-06-17 15:07:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:07:00', '2015-06-17 15:07:00', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 15:07:01', '2015-06-17 15:07:01') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 15:07:01', '2015-06-17 15:07:01') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 15:07:01', '2015-06-17 15:07:01') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 15:07:01', '2015-06-17 15:07:01', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:07:01', '2015-06-17 15:07:01', 298486374)  (1.3ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (99.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.4ms) Completed 200 OK in 715ms (Views: 688.8ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.7ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (14.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (18.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (133.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (20.9ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (494.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 564ms (Views: 502.3ms | ActiveRecord: 14.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} Unpermitted parameter: 0  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.8ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 15:07:02.793166"], ["updated_at", "2015-06-17 15:07:02.793166"]] SQL (2.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 15:07:02.796871"], ["updated_at", "2015-06-17 15:07:02.796871"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 234ms (ActiveRecord: 5.4ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (42.4ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (31.5ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 15:14:21', '2015-06-17 15:14:21') Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 15:14:21', '2015-06-17 15:14:21') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 15:14:21', '2015-06-17 15:14:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:14:21', '2015-06-17 15:14:21', 298486374)  (1.4ms) COMMIT  (4.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434554062_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 15:14:22.018465"], ["updated_at", "2015-06-17 15:14:22.018465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 99ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (202.2ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (98.1ms) Completed 200 OK in 1407ms (Views: 1404.3ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (1.0ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (25.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (31.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 89ms (Views: 62.0ms | ActiveRecord: 7.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 15:14:23.753460"], ["updated_at", "2015-06-17 15:14:23.753460"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (32.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.5ms) Completed 200 OK in 60ms (Views: 55.3ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.5ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (26.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (30.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (144.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (33.4ms) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (416.9ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.2ms) Completed 200 OK in 444ms (Views: 428.1ms | ActiveRecord: 13.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 15:14:24.323943"], ["updated_at", "2015-06-17 15:14:24.323943"]] SQL (1.0ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-17 15:14:24.328478"], ["updated_at", "2015-06-17 15:14:24.328478"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:14:24.331190"], ["updated_at", "2015-06-17 15:14:24.331190"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:14:24.334359"], ["updated_at", "2015-06-17 15:14:24.334359"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:14:24.337420"], ["updated_at", "2015-06-17 15:14:24.337420"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:14:24.341208"], ["updated_at", "2015-06-17 15:14:24.341208"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-17 15:14:24.344509"], ["updated_at", "2015-06-17 15:14:24.344509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 34ms (ActiveRecord: 6.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.4ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (15.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 15:14:24.501980"], ["updated_at", "2015-06-17 15:14:24.501980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (16.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (24.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 47ms (Views: 43.2ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 21ms (Views: 18.8ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (12.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (48.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (21.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (1.0ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374) Fixture Delete (16.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.6ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-17 15:49:17', '2015-06-17 15:49:17') Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374) Fixture Delete (2.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-17 15:49:17', '2015-06-17 15:49:17') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-17 15:49:17', '2015-06-17 15:49:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-17 15:49:17', '2015-06-17 15:49:17', 298486374)  (1.4ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (17.0ms) PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (162.5ms) Completed 200 OK in 4215ms (Views: 4211.7ms | ActiveRecord: 3.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (120.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (142.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 161ms (Views: 156.0ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-17 15:49:22.479575"], ["updated_at", "2015-06-17 15:49:22.479575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (12.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434556162_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-17 15:49:22.590482"], ["updated_at", "2015-06-17 15:49:22.590482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 16ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (11.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 31ms (Views: 29.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (34.5ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 65ms (Views: 62.8ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.4ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 30ms (Views: 27.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 46ms (Views: 42.3ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (134.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (25.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (749.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 800ms (Views: 764.9ms | ActiveRecord: 15.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-17 15:49:23.824061"], ["updated_at", "2015-06-17 15:49:23.824061"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-17 15:49:23.826375"], ["updated_at", "2015-06-17 15:49:23.826375"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:49:23.828582"], ["updated_at", "2015-06-17 15:49:23.828582"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:49:23.830688"], ["updated_at", "2015-06-17 15:49:23.830688"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:49:23.833233"], ["updated_at", "2015-06-17 15:49:23.833233"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:49:23.835162"], ["updated_at", "2015-06-17 15:49:23.835162"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 15:49:23.847252"], ["updated_at", "2015-06-17 15:49:23.847252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 192ms (ActiveRecord: 5.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 15:49:23.866187"], ["updated_at", "2015-06-17 15:49:23.866187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (10.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (19.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 69ms (Views: 59.5ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (7.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (130.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (20.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374) Fixture Delete (16.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 05:08:38', '2015-06-18 05:08:38') Fixture Delete (18.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 05:08:38', '2015-06-18 05:08:38') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 05:08:38', '2015-06-18 05:08:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:08:38', '2015-06-18 05:08:38', 298486374)  (1.4ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (11.0ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 05:08:39.016103"], ["updated_at", "2015-06-18 05:08:39.016103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.9ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE (archived != true AND draft != true) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (5.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (66.9ms) Completed 200 OK in 3988ms (Views: 3984.6ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) Completed 200 OK in 24ms (Views: 20.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (1.1ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (37.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (56.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 98ms (Views: 71.2ms | ActiveRecord: 8.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (343.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (365.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 385ms (Views: 381.8ms | ActiveRecord: 2.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (13.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 380ms (Views: 376.8ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (15.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 80ms (Views: 77.8ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 05:08:44.252865"], ["updated_at", "2015-06-18 05:08:44.252865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434604124_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 05:08:44.443187"], ["updated_at", "2015-06-18 05:08:44.443187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (33.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 190ms (Views: 188.1ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (32.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) Completed 200 OK in 58ms (Views: 54.5ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.2ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.2ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (19.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (107.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (23.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (309.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 339ms (Views: 324.2ms | ActiveRecord: 12.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (1.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 05:08:45.091611"], ["updated_at", "2015-06-18 05:08:45.091611"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 05:08:45.093700"], ["updated_at", "2015-06-18 05:08:45.093700"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:08:45.097198"], ["updated_at", "2015-06-18 05:08:45.097198"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:08:45.102484"], ["updated_at", "2015-06-18 05:08:45.102484"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:08:45.106124"], ["updated_at", "2015-06-18 05:08:45.106124"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:08:45.108226"], ["updated_at", "2015-06-18 05:08:45.108226"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 05:08:45.110420"], ["updated_at", "2015-06-18 05:08:45.110420"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 31ms (ActiveRecord: 5.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.2ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (44.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374) Fixture Delete (1.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (28.8ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 05:11:34', '2015-06-18 05:11:34') Fixture Delete (1.2ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.8ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 05:11:34', '2015-06-18 05:11:34') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 05:11:34', '2015-06-18 05:11:34', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 05:11:34', '2015-06-18 05:11:34', 298486374)  (1.9ms) COMMIT  (4.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.3ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434604294_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 05:11:34.674316"], ["updated_at", "2015-06-18 05:11:34.674316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 103ms (ActiveRecord: 1.0ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.4ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (1.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (408.7ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (105.5ms) Completed 200 OK in 953ms (Views: 948.9ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE (archived != true AND draft != true) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (3.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.1ms) Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.6ms) Completed 200 OK in 23ms (Views: 20.2ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.7ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (47.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (65.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 117ms (Views: 86.7ms | ActiveRecord: 7.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 05:11:35.885549"], ["updated_at", "2015-06-18 05:11:35.885549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.7ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (109.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (127.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 150ms (Views: 146.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (12.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 35ms (Views: 32.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 05:11:36.376117"], ["updated_at", "2015-06-18 05:11:36.376117"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 05:11:36.378328"], ["updated_at", "2015-06-18 05:11:36.378328"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:11:36.380599"], ["updated_at", "2015-06-18 05:11:36.380599"]] SQL (0.8ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:11:36.382899"], ["updated_at", "2015-06-18 05:11:36.382899"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:11:36.385383"], ["updated_at", "2015-06-18 05:11:36.385383"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 05:11:36.387481"], ["updated_at", "2015-06-18 05:11:36.387481"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 05:11:36.389808"], ["updated_at", "2015-06-18 05:11:36.389808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 234ms (ActiveRecord: 6.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (42.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 73ms (Views: 70.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (14.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (80.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (19.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (239.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 264ms (Views: 250.8ms | ActiveRecord: 11.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 05:11:36.755976"], ["updated_at", "2015-06-18 05:11:36.755976"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (362.0ms) DROP DATABASE IF EXISTS "dummy_test"  (4119.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (59.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (137.5ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (5.9ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (8.4ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.9ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (14.8ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.2ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (11.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (118.1ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "links" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (7.4ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.8ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (10.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (110.6ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (24.5ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.3ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.4ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.9ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.0ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (183.3ms) DROP DATABASE IF EXISTS "dummy_test"  (1300.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (29.6ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.9ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (5.4ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (13.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (50.2ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (29.3ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "links" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (20.7ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.2ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (16.7ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (22.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.7ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.5ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.8ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.7ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.8ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.6ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (27.9ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (208.9ms) DROP DATABASE IF EXISTS "dummy_test"  (2971.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.9ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (13.8ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (5.3ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (8.1ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (4.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (7.7ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.4ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.4ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "links" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (9.6ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (3.7ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (16.6ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.9ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (8.8ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (29.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.1ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.8ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.9ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.8ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.6ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (6.7ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (122.3ms) DROP DATABASE IF EXISTS "dummy_test"  (1497.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.7ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean, "archived" boolean, "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (28.4ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (6.2ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.4ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (6.9ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "links" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.1ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.9ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.8ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.2ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.8ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.3ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (107.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (1.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (13.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (14.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 980190962) Fixture Insert (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) ROLLBACK  (4.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (23.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:06', '2015-06-18 14:43:06', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (4.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.5ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (4.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (12.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) Fixture Delete (0.3ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 14:43:07', '2015-06-18 14:43:07', 298486374) PG::UndefinedTable: ERROR: relation "pages_cms_contacts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_contacts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_contacts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (73.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.5ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (4.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) ROLLBACK  (19.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (193.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (20.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.2ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (4.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (7.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.3ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.2ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.3ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (3.0ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.7ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.7ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.8ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (3.1ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 5: WHERE a.attrelid = '"pages_cms_accounts"'::re... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pages_cms_accounts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (2.6ms) ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (627.1ms) DROP DATABASE IF EXISTS "dummy_test"  (3819.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'  (449.8ms) DROP DATABASE IF EXISTS "dummy_test"  (1319.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.8ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying, "email" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.4ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.5ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.3ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "page_block_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_contacts_on_page_block_id" ON "pages_cms_contacts" USING btree ("page_block_id")  (6.1ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.1ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (7.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.6ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (8.6ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.9ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.6ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (4.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.9ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.8ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_9c3f3a8371" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.7ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.9ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.3ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.1ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (24.3ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (1.1ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:28', '2015-06-18 15:05:28', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:28', '2015-06-18 15:05:28', 980190962)  (0.1ms) ROLLBACK  (4.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:28', '2015-06-18 15:05:28', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:28', '2015-06-18 15:05:28', 980190962)  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:28', '2015-06-18 15:05:28', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:28', '2015-06-18 15:05:28', 980190962)  (0.1ms) ROLLBACK  (4.1ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.1ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.2ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (4.3ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.3ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (2.9ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.9ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.2ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.3ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.2ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.1ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (3.3ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962) PG::UndefinedColumn: ERROR: column "page_title" of relation "pages_cms_accounts" does not exist LINE 1: INSERT INTO "pages_cms_accounts" ("name", "page_title", "ema... ^ : INSERT INTO "pages_cms_accounts" ("name", "page_title", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:05:29', '2015-06-18 15:05:29', 980190962)  (0.1ms) ROLLBACK  (3.2ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.7ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.2ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.7ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:06:09', '2015-06-18 15:06:09') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (20.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:06:09', '2015-06-18 15:06:09') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:06:09', '2015-06-18 15:06:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:06:09', '2015-06-18 15:06:09', 298486374)  (1.1ms) COMMIT  (6.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (8.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (32.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't' Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (68.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE (archived != true AND draft != true) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (58.3ms) Completed 500 Internal Server Error in 1677ms (ActiveRecord: 7.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home --------------------------------------------------------  (0.3ms) ROLLBACK  (4.0ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.8ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (22.4ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (26.4ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:06:12.131953"], ["updated_at", "2015-06-18 15:06:12.131953"]] SQL (405.1ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 15:06:12.135117"], ["updated_at", "2015-06-18 15:06:12.135117"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:06:12.541876"], ["updated_at", "2015-06-18 15:06:12.541876"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:06:12.544128"], ["updated_at", "2015-06-18 15:06:12.544128"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:06:12.547084"], ["updated_at", "2015-06-18 15:06:12.547084"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:06:12.549559"], ["updated_at", "2015-06-18 15:06:12.549559"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 15:06:12.552021"], ["updated_at", "2015-06-18 15:06:12.552021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 661ms (ActiveRecord: 437.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (49.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (22.2ms) Completed 500 Internal Server Error in 93ms (ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (42.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (54.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (132.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (22.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (508.0ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (29.7ms) Completed 500 Internal Server Error in 565ms (ActiveRecord: 12.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434639973_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:06:13.369515"], ["updated_at", "2015-06-18 15:06:13.369515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 25ms (ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (29.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (33.2ms) Completed 500 Internal Server Error in 87ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::ContactMailer#new_contact: processed outbound mail in 0.7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (30.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (28.5ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (13.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (26.4ms) Completed 500 Internal Server Error in 56ms (ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (32.4ms) Completed 500 Internal Server Error in 66ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:06:14.395528"], ["updated_at", "2015-06-18 15:06:14.395528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (18.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (51.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (2.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:08:14', '2015-06-18 15:08:14') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:08:14', '2015-06-18 15:08:14') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (2.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:08:14', '2015-06-18 15:08:14', 298486374)  (4.4ms) COMMIT  (6.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::ContactMailer#new_contact: processed outbound mail in 1.3ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (14.2ms) PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (202.9ms) Completed 200 OK in 1239ms (Views: 1220.4ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (1.8ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:08:17.252545"], ["updated_at", "2015-06-18 15:08:17.252545"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 15:08:17.254740"], ["updated_at", "2015-06-18 15:08:17.254740"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:08:17.258612"], ["updated_at", "2015-06-18 15:08:17.258612"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:08:17.260725"], ["updated_at", "2015-06-18 15:08:17.260725"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:08:17.290678"], ["updated_at", "2015-06-18 15:08:17.290678"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:08:17.293012"], ["updated_at", "2015-06-18 15:08:17.293012"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 15:08:17.295985"], ["updated_at", "2015-06-18 15:08:17.295985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 516ms (ActiveRecord: 18.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (22.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (72.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (14.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (38.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (352.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 388ms (Views: 372.1ms | ActiveRecord: 12.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (19.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.5ms) Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434640097_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:08:17.839002"], ["updated_at", "2015-06-18 15:08:17.839002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 25ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (39.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.9ms) Completed 200 OK in 52ms (Views: 49.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (12.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (18.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 64ms (Views: 59.7ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (13.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (17.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (15.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (24.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.8ms) Completed 200 OK in 53ms (Views: 43.1ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:08:18.189304"], ["updated_at", "2015-06-18 15:08:18.189304"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (43.4ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:09:10', '2015-06-18 15:09:10') Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:09:10', '2015-06-18 15:09:10') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:10', '2015-06-18 15:09:10', 298486374)  (0.9ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.3ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:09:49', '2015-06-18 15:09:49', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:09:49', '2015-06-18 15:09:49') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:09:49', '2015-06-18 15:09:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:49', '2015-06-18 15:09:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:49', '2015-06-18 15:09:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:09:49', '2015-06-18 15:09:49', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (124.0ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:09:49', '2015-06-18 15:09:49', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:09:49', '2015-06-18 15:09:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:09:50', '2015-06-18 15:09:50') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:09:50', '2015-06-18 15:09:50') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:09:50', '2015-06-18 15:09:50') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (5.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:09:50', '2015-06-18 15:09:50', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:09:50', '2015-06-18 15:09:50', 298486374)  (1.1ms) COMMIT  (2.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.6ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.1ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.8ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:10:40', '2015-06-18 15:10:40', 980190962) Fixture Delete (1.0ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:10:41', '2015-06-18 15:10:41') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:10:41', '2015-06-18 15:10:41') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:10:41', '2015-06-18 15:10:41', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:10:41', '2015-06-18 15:10:41', 298486374)  (1.2ms) COMMIT  (2.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (40.6ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:11:19', '2015-06-18 15:11:19', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:11:19', '2015-06-18 15:11:19') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:11:19', '2015-06-18 15:11:19', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:19', '2015-06-18 15:11:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:19', '2015-06-18 15:11:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:11:19', '2015-06-18 15:11:19', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:11:19', '2015-06-18 15:11:19', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:11:19', '2015-06-18 15:11:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:11:19', '2015-06-18 15:11:19') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:11:20', '2015-06-18 15:11:20') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:11:20', '2015-06-18 15:11:20') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.8ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:11:20', '2015-06-18 15:11:20', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:20', '2015-06-18 15:11:20', 298486374)  (6.2ms) COMMIT  (10.4ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.7ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.7ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:11:38', '2015-06-18 15:11:38') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38') Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:11:38', '2015-06-18 15:11:38') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:11:38', '2015-06-18 15:11:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:11:38', '2015-06-18 15:11:38', 298486374)  (1.6ms) COMMIT  (5.5ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (31.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (658.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (671.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (104.2ms) Completed 200 OK in 1494ms (Views: 1469.2ms | ActiveRecord: 4.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:11:40.006727"], ["updated_at", "2015-06-18 15:11:40.006727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (12.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 35ms (Views: 32.1ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (12.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 24ms (Views: 20.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:11:40.580674"], ["updated_at", "2015-06-18 15:11:40.580674"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 15:11:40.583086"], ["updated_at", "2015-06-18 15:11:40.583086"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:11:40.585592"], ["updated_at", "2015-06-18 15:11:40.585592"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:11:40.588008"], ["updated_at", "2015-06-18 15:11:40.588008"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:11:40.590754"], ["updated_at", "2015-06-18 15:11:40.590754"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:11:40.593002"], ["updated_at", "2015-06-18 15:11:40.593002"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 15:11:40.595530"], ["updated_at", "2015-06-18 15:11:40.595530"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 405ms (ActiveRecord: 7.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (80.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 166ms (Views: 162.1ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (56.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (19.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (243.6ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 270ms (Views: 255.4ms | ActiveRecord: 11.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home --------------------------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:11:41.116891"], ["updated_at", "2015-06-18 15:11:41.116891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434640301_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:11:41.181239"], ["updated_at", "2015-06-18 15:11:41.181239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 16ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (27.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 39ms (Views: 37.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::ContactMailer#new_contact: processed outbound mail in 0.9ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (11.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (39.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 91ms (Views: 81.5ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (59.5ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:23:33', '2015-06-18 15:23:33') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:23:33', '2015-06-18 15:23:33') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:23:33', '2015-06-18 15:23:33', 298486374)  (1.1ms) COMMIT  (2.4ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (14.4ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (69.4ms) Completed 200 OK in 1399ms (Views: 1383.7ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (51.1ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (14.0ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:26:23', '2015-06-18 15:26:23') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:26:23', '2015-06-18 15:26:23') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:26:23', '2015-06-18 15:26:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:26:23', '2015-06-18 15:26:23', 298486374)  (1.6ms) COMMIT  (2.6ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ArticlesControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (61.1ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:28:15', '2015-06-18 15:28:15') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:28:15', '2015-06-18 15:28:15') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:28:15', '2015-06-18 15:28:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:28:15', '2015-06-18 15:28:15', 298486374)  (1.2ms) COMMIT  (4.3ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (1.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (71.8ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (82.9ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (44.7ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:30:01', '2015-06-18 15:30:01') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:30:01', '2015-06-18 15:30:01') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:30:01', '2015-06-18 15:30:01', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:01', '2015-06-18 15:30:01', 298486374)  (2.3ms) COMMIT  (3.9ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:30:01.835284"], ["updated_at", "2015-06-18 15:30:01.835284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 24ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:30:01.900353"], ["updated_at", "2015-06-18 15:30:01.900353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (45.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (408.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (432.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (168.6ms) Completed 200 OK in 1370ms (Views: 1351.2ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (14.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (16.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 39ms (Views: 35.1ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.2ms) Completed 200 OK in 23ms (Views: 20.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.8ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:30:03.632609"], ["updated_at", "2015-06-18 15:30:03.632609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.8ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (43.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (53.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 117ms (Views: 72.6ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::ContactMailer#new_contact: processed outbound mail in 0.7ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434641404_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:30:04.253306"], ["updated_at", "2015-06-18 15:30:04.253306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 48ms (Views: 46.2ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (28.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (1.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 51ms (Views: 46.0ms | ActiveRecord: 4.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (22.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (83.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (23.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (431.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 457ms (Views: 441.8ms | ActiveRecord: 12.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:30:04.875233"], ["updated_at", "2015-06-18 15:30:04.875233"]] SQL (0.9ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:30:04.878222"], ["updated_at", "2015-06-18 15:30:04.878222"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:04.881685"], ["updated_at", "2015-06-18 15:30:04.881685"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:04.884327"], ["updated_at", "2015-06-18 15:30:04.884327"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:04.886893"], ["updated_at", "2015-06-18 15:30:04.886893"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:04.889278"], ["updated_at", "2015-06-18 15:30:04.889278"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:30:04.892216"], ["updated_at", "2015-06-18 15:30:04.892216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 28ms (ActiveRecord: 5.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.3ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.3ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:30:23', '2015-06-18 15:30:23') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:30:23', '2015-06-18 15:30:23') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:30:23', '2015-06-18 15:30:23', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:30:23', '2015-06-18 15:30:23', 298486374)  (1.2ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (36.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (48.1ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.1ms) Completed 200 OK in 709ms (Views: 612.0ms | ActiveRecord: 6.9ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::ContactMailer#new_contact: processed outbound mail in 2.0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:30:25.507522"], ["updated_at", "2015-06-18 15:30:25.507522"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (20.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (26.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (92.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (25.3ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (374.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 405ms (Views: 386.9ms | ActiveRecord: 14.7ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:30:25.966694"], ["updated_at", "2015-06-18 15:30:25.966694"]] SQL (0.9ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:30:25.969114"], ["updated_at", "2015-06-18 15:30:25.969114"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:25.972060"], ["updated_at", "2015-06-18 15:30:25.972060"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:25.974715"], ["updated_at", "2015-06-18 15:30:25.974715"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:25.978291"], ["updated_at", "2015-06-18 15:30:25.978291"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:25.981485"], ["updated_at", "2015-06-18 15:30:25.981485"]] SQL (1.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:30:25.984241"], ["updated_at", "2015-06-18 15:30:25.984241"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 37ms (ActiveRecord: 7.2ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (15.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 26ms (Views: 22.3ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (16.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (22.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 47ms (Views: 41.3ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (15.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 2.7ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.8ms) Completed 200 OK in 50ms (Views: 47.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:30:26.219551"], ["updated_at", "2015-06-18 15:30:26.219551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (1.0ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.3ms) Completed 200 OK in 25ms (Views: 18.6ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434641426_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:30:26.360668"], ["updated_at", "2015-06-18 15:30:26.360668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (32.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 59ms (Views: 57.0ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:30:26.480767"], ["updated_at", "2015-06-18 15:30:26.480767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.9ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:31:08', '2015-06-18 15:31:08') Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:31:08', '2015-06-18 15:31:08') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:31:08', '2015-06-18 15:31:08', 298486374)  (1.8ms) COMMIT  (2.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:31:08.947423"], ["updated_at", "2015-06-18 15:31:08.947423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:32:10', '2015-06-18 15:32:10') Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:32:10', '2015-06-18 15:32:10') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.1ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:32:10', '2015-06-18 15:32:10', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:10', '2015-06-18 15:32:10', 298486374)  (1.2ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:32:11.140993"], ["updated_at", "2015-06-18 15:32:11.140993"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 24ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:32:32', '2015-06-18 15:32:32') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:32:32', '2015-06-18 15:32:32') Fixture Delete (0.8ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:32:32', '2015-06-18 15:32:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:32:32', '2015-06-18 15:32:32', 298486374)  (1.2ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:32:32.953661"], ["updated_at", "2015-06-18 15:32:32.953661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 57ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (59.7ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.7ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.9ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374) Fixture Delete (1.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Delete (1.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (9.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Insert (0.8ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:33:57', '2015-06-18 15:33:57') Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:33:57', '2015-06-18 15:33:57') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:33:57', '2015-06-18 15:33:57', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:33:57', '2015-06-18 15:33:57', 298486374)  (1.8ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML Completed 500 Internal Server Error in 64ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.4ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42') Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.1ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:34:42', '2015-06-18 15:34:42') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:34:42', '2015-06-18 15:34:42') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:34:42', '2015-06-18 15:34:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:34:42', '2015-06-18 15:34:42', 298486374)  (0.9ms) COMMIT  (4.3ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:34:42.532591"], ["updated_at", "2015-06-18 15:34:42.532591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 28ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (54.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (1.0ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.7ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.7ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:35:32', '2015-06-18 15:35:32') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:35:32', '2015-06-18 15:35:32') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.0ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Insert (1.0ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (2.9ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:35:32', '2015-06-18 15:35:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:35:32', '2015-06-18 15:35:32', 298486374)  (1.3ms) COMMIT  (3.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (1.0ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:35:34.187124"], ["updated_at", "2015-06-18 15:35:34.187124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 190ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (48.4ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.7ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:37:28', '2015-06-18 15:37:28') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:37:28', '2015-06-18 15:37:28') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:37:28', '2015-06-18 15:37:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:37:28', '2015-06-18 15:37:28', 298486374)  (1.0ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.9ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:37:29.298371"], ["updated_at", "2015-06-18 15:37:29.298371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (3.2ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 157.9ms Completed 500 Internal Server Error in 226ms (ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.8ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:37:29.746760"], ["updated_at", "2015-06-18 15:37:29.746760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (2.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (63.5ms) Completed 200 OK in 654ms (Views: 652.5ms | ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:37:30.530644"], ["updated_at", "2015-06-18 15:37:30.530644"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:37:30.532865"], ["updated_at", "2015-06-18 15:37:30.532865"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:37:30.535229"], ["updated_at", "2015-06-18 15:37:30.535229"]] SQL (11.3ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:37:30.537668"], ["updated_at", "2015-06-18 15:37:30.537668"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:37:30.550855"], ["updated_at", "2015-06-18 15:37:30.550855"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:37:30.553612"], ["updated_at", "2015-06-18 15:37:30.553612"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:37:30.556291"], ["updated_at", "2015-06-18 15:37:30.556291"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 76ms (ActiveRecord: 16.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (22.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (34.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.7ms) PagesCms::Image Load (1.1ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (97.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (22.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (414.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.4ms) Completed 200 OK in 436ms (Views: 419.5ms | ActiveRecord: 13.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (2.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (28.1ms) PagesCms::Page Load (1.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (1.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.8ms) Completed 200 OK in 47ms (Views: 37.2ms | ActiveRecord: 8.9ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (7.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (3.3ms) ROLLBACK  (1.6ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (1.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.9ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434641851_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:37:31.235375"], ["updated_at", "2015-06-18 15:37:31.235375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 12ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (45.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.5ms) Completed 200 OK in 99ms (Views: 96.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:37:31.399607"], ["updated_at", "2015-06-18 15:37:31.399607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 16ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (19.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (27.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 56ms (Views: 51.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (15.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.5ms) Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (17.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (21.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 101ms (Views: 97.7ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (6.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.8ms) Completed 200 OK in 26ms (Views: 22.4ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.5ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (24.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (36.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 56ms (Views: 45.2ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (62.6ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.1ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (3.0ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:39:22', '2015-06-18 15:39:22') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:39:22', '2015-06-18 15:39:22') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (9.9ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.7ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:39:22', '2015-06-18 15:39:22', 298486374)  (1.2ms) COMMIT  (2.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (253.8ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (191.5ms) Completed 200 OK in 1305ms (Views: 1298.1ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434641964_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:39:24.314238"], ["updated_at", "2015-06-18 15:39:24.314238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 101ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (0.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (123.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (134.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.8ms) Completed 200 OK in 164ms (Views: 154.2ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:39:24.592551"], ["updated_at", "2015-06-18 15:39:24.592551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (24.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 59ms (Views: 56.9ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (14.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 41ms (Views: 36.3ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:39:24.942573"], ["updated_at", "2015-06-18 15:39:24.942573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 16ms (Views: 12.7ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:39:25.118711"], ["updated_at", "2015-06-18 15:39:25.118711"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:39:25.120696"], ["updated_at", "2015-06-18 15:39:25.120696"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:39:25.122839"], ["updated_at", "2015-06-18 15:39:25.122839"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:39:25.125039"], ["updated_at", "2015-06-18 15:39:25.125039"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:39:25.127644"], ["updated_at", "2015-06-18 15:39:25.127644"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:39:25.129943"], ["updated_at", "2015-06-18 15:39:25.129943"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:39:25.132503"], ["updated_at", "2015-06-18 15:39:25.132503"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 70ms (ActiveRecord: 6.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (15.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 44ms (Views: 40.1ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.5ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (12.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (69.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (20.8ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.5ms) PagesCms::Page Load (3.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (275.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 288ms (Views: 270.3ms | ActiveRecord: 15.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:39:25.535575"], ["updated_at", "2015-06-18 15:39:25.535575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (31.5ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 59.6ms Completed 500 Internal Server Error in 135ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (11.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (25.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 54ms (Views: 43.9ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.9ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.6ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:40:02', '2015-06-18 15:40:02') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:40:02', '2015-06-18 15:40:02') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_sliders" Fixture Insert (20.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:40:02', '2015-06-18 15:40:02', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:40:02', '2015-06-18 15:40:02', 298486374)  (2.1ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.7ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.6ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (44.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (61.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.9ms) Completed 200 OK in 1008ms (Views: 882.7ms | ActiveRecord: 7.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.6ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.6ms) Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:40:03.740246"], ["updated_at", "2015-06-18 15:40:03.740246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (1.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.5ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (25.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (251.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (256.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 282ms (Views: 278.5ms | ActiveRecord: 2.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 35ms (Views: 33.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (13.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (15.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:40:04.205720"], ["updated_at", "2015-06-18 15:40:04.205720"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 15ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434642004_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:40:04.292875"], ["updated_at", "2015-06-18 15:40:04.292875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (23.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 48ms (Views: 45.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:40:04.519038"], ["updated_at", "2015-06-18 15:40:04.519038"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:40:04.520749"], ["updated_at", "2015-06-18 15:40:04.520749"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:40:04.522641"], ["updated_at", "2015-06-18 15:40:04.522641"]] SQL (20.8ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:40:04.524621"], ["updated_at", "2015-06-18 15:40:04.524621"]] SQL (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:40:04.548148"], ["updated_at", "2015-06-18 15:40:04.548148"]] SQL (1.0ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:40:04.552098"], ["updated_at", "2015-06-18 15:40:04.552098"]] SQL (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:40:04.556050"], ["updated_at", "2015-06-18 15:40:04.556050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 82ms (ActiveRecord: 26.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.8ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (14.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (64.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.1ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (25.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.9ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (344.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 372ms (Views: 357.9ms | ActiveRecord: 11.7ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (15.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:40:05.002060"], ["updated_at", "2015-06-18 15:40:05.002060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (1.4ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 404.5ms Sent mail to MyString (39.9ms) Date: Thu, 18 Jun 2015 08:40:05 -0700 From: noreply@MyString To: MyString Message-ID: <5582e65579be2_ef213fdf1c4602042676a@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 510ms (ActiveRecord: 2.0ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (61.9ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:43:31', '2015-06-18 15:43:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:43:31', '2015-06-18 15:43:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (2.0ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:43:31', '2015-06-18 15:43:31', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:43:31', '2015-06-18 15:43:31', 298486374)  (1.5ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434642212_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:43:32.093707"], ["updated_at", "2015-06-18 15:43:32.093707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 77ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (373.9ms) PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (201.7ms) Completed 200 OK in 2350ms (Views: 2346.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 30ms (Views: 27.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (11.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:43:34.834563"], ["updated_at", "2015-06-18 15:43:34.834563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (27.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 56ms (Views: 52.7ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.9ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.7ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (15.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (145.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.6ms) PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (30.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.6ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (432.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 469ms (Views: 426.3ms | ActiveRecord: 15.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:43:35.419618"], ["updated_at", "2015-06-18 15:43:35.419618"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:43:35.421351"], ["updated_at", "2015-06-18 15:43:35.421351"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:43:35.423440"], ["updated_at", "2015-06-18 15:43:35.423440"]] SQL (17.5ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:43:35.425744"], ["updated_at", "2015-06-18 15:43:35.425744"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:43:35.444960"], ["updated_at", "2015-06-18 15:43:35.444960"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:43:35.447164"], ["updated_at", "2015-06-18 15:43:35.447164"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:43:35.449394"], ["updated_at", "2015-06-18 15:43:35.449394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 40ms (ActiveRecord: 21.8ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:43:35.505364"], ["updated_at", "2015-06-18 15:43:35.505364"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (1.5ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 348.1ms Sent mail to MyString (9.6ms) Date: Thu, 18 Jun 2015 08:43:35 -0700 From: noreply@MyString To: MyString Message-ID: <5582e727e27d2_ef5f3fd1f88342084268c@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 429ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:43:35.956645"], ["updated_at", "2015-06-18 15:43:35.956645"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (15.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) Completed 200 OK in 38ms (Views: 34.9ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (7.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (11.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 23ms (Views: 20.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (11.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (18.2ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 41ms (Views: 30.2ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.5ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 15:45:43', '2015-06-18 15:45:43') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 15:45:43', '2015-06-18 15:45:43') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 15:45:43', '2015-06-18 15:45:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 15:45:43', '2015-06-18 15:45:43', 298486374)  (3.0ms) COMMIT  (2.7ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (1.0ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 15:45:44.023514"], ["updated_at", "2015-06-18 15:45:44.023514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (3.9ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 654.0ms Sent mail to MyString (8.9ms) Date: Thu, 18 Jun 2015 08:45:44 -0700 From: noreply@MyString To: MyString Message-ID: <5582e7a8b5faf_ef953fc770460204853c0@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 754ms (ActiveRecord: 2.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:45:44.999512"], ["updated_at", "2015-06-18 15:45:44.999512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.9ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434642345_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 15:45:45.073947"], ["updated_at", "2015-06-18 15:45:45.073947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 14ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (212.4ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (91.1ms) Completed 200 OK in 4014ms (Views: 4011.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.8ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.6ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (43.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (50.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 101ms (Views: 74.2ms | ActiveRecord: 7.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (4.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.2ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.2ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (13.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (71.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (17.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (295.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 324ms (Views: 310.6ms | ActiveRecord: 11.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 15:45:49.723839"], ["updated_at", "2015-06-18 15:45:49.723839"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 15:45:49.725672"], ["updated_at", "2015-06-18 15:45:49.725672"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:45:49.727619"], ["updated_at", "2015-06-18 15:45:49.727619"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:45:49.729674"], ["updated_at", "2015-06-18 15:45:49.729674"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:45:49.732647"], ["updated_at", "2015-06-18 15:45:49.732647"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:45:49.734980"], ["updated_at", "2015-06-18 15:45:49.734980"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:45:49.737530"], ["updated_at", "2015-06-18 15:45:49.737530"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 23ms (ActiveRecord: 5.3ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (12.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (18.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 48ms (Views: 46.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (7.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (10.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 15:45:49.907593"], ["updated_at", "2015-06-18 15:45:49.907593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (64.5ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (13.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.8ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374) Fixture Delete (1.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 16:21:12', '2015-06-18 16:21:12') Fixture Delete (18.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.7ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 16:21:12', '2015-06-18 16:21:12') Fixture Delete (7.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 16:21:12', '2015-06-18 16:21:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:21:12', '2015-06-18 16:21:12', 298486374)  (3.5ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (122.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 198ms (ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.1ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 16:21:13.578391"], ["updated_at", "2015-06-18 16:21:13.578391"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 16:21:13.580811"], ["updated_at", "2015-06-18 16:21:13.580811"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:21:13.583035"], ["updated_at", "2015-06-18 16:21:13.583035"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:21:13.585443"], ["updated_at", "2015-06-18 16:21:13.585443"]] SQL (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:21:13.587987"], ["updated_at", "2015-06-18 16:21:13.587987"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:21:13.589879"], ["updated_at", "2015-06-18 16:21:13.589879"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 16:21:13.592034"], ["updated_at", "2015-06-18 16:21:13.592034"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 280ms (ActiveRecord: 6.8ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.2ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (17.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (61.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (18.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (462.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 485ms (ActiveRecord: 10.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 22ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit -------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (13.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (18.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 25ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 16:21:14.298386"], ["updated_at", "2015-06-18 16:21:14.298386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (12.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (40.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 68ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434644474_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 16:21:14.535048"], ["updated_at", "2015-06-18 16:21:14.535048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.8ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 16:21:14.617800"], ["updated_at", "2015-06-18 16:21:14.617800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::ContactMailer#new_contact: processed outbound mail in 2.3ms Completed 404 Not Found in 84ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (14.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (23.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 47ms (ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 16:21:14.906253"], ["updated_at", "2015-06-18 16:21:14.906253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (118.8ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (21.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Delete (1.1ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374) Fixture Delete (2.0ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 16:51:39', '2015-06-18 16:51:39') Fixture Delete (1.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 16:51:39', '2015-06-18 16:51:39') Fixture Delete (1.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:51:39', '2015-06-18 16:51:39', 298486374)  (1.2ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (115.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 857ms (Views: 836.5ms | ActiveRecord: 5.9ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (23.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (28.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (15.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (136.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (23.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (379.5ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 452ms (Views: 401.9ms | ActiveRecord: 17.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 16:51:40.973216"], ["updated_at", "2015-06-18 16:51:40.973216"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 16:51:40.976224"], ["updated_at", "2015-06-18 16:51:40.976224"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:51:40.978271"], ["updated_at", "2015-06-18 16:51:40.978271"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:51:40.980371"], ["updated_at", "2015-06-18 16:51:40.980371"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:51:40.982880"], ["updated_at", "2015-06-18 16:51:40.982880"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:51:40.985227"], ["updated_at", "2015-06-18 16:51:40.985227"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 16:51:40.987547"], ["updated_at", "2015-06-18 16:51:40.987547"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 163ms (ActiveRecord: 6.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434646301_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 16:51:41.042003"], ["updated_at", "2015-06-18 16:51:41.042003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 51ms (Views: 47.7ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 16:51:41.120147"], ["updated_at", "2015-06-18 16:51:41.120147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (16.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 31ms (Views: 25.9ms | ActiveRecord: 4.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (10.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 20.6ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 16:51:41.273781"], ["updated_at", "2015-06-18 16:51:41.273781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::ContactMailer#new_contact: processed outbound mail in 2.1ms Completed 404 Not Found in 55ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.2ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 18.3ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit -------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (4.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 16:51:41.478030"], ["updated_at", "2015-06-18 16:51:41.478030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.2ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (9.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (28.8ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 48ms (Views: 37.7ms | ActiveRecord: 5.0ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (64.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_accounts" Fixture Insert (22.2ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contacts" Fixture Insert (7.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (11.1ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 16:53:49', '2015-06-18 16:53:49') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 16:53:49', '2015-06-18 16:53:49') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (5.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:53:49', '2015-06-18 16:53:49', 298486374)  (1.1ms) COMMIT  (2.5ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434646429_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 16:53:49.699602"], ["updated_at", "2015-06-18 16:53:49.699602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (238.3ms) PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (235.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 958ms (Views: 953.3ms | ActiveRecord: 4.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (6.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (28.0ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 72ms (Views: 67.3ms | ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (40.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (48.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 113ms (Views: 64.9ms | ActiveRecord: 7.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 16:53:51.100606"], ["updated_at", "2015-06-18 16:53:51.100606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (11.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 34ms (Views: 29.9ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 16:53:51.257729"], ["updated_at", "2015-06-18 16:53:51.257729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::ContactMailer#new_contact: processed outbound mail in 1.0ms Completed 500 Internal Server Error in 54ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (34.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 58ms (Views: 52.5ms | ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (14.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (10.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (73.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (17.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (276.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 303ms (Views: 287.8ms | ActiveRecord: 13.3ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 16:53:51.726058"], ["updated_at", "2015-06-18 16:53:51.726058"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 16:53:51.728171"], ["updated_at", "2015-06-18 16:53:51.728171"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:53:51.730589"], ["updated_at", "2015-06-18 16:53:51.730589"]] SQL (16.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:53:51.733086"], ["updated_at", "2015-06-18 16:53:51.733086"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:53:51.752920"], ["updated_at", "2015-06-18 16:53:51.752920"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:53:51.755155"], ["updated_at", "2015-06-18 16:53:51.755155"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 16:53:51.757488"], ["updated_at", "2015-06-18 16:53:51.757488"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 41ms (ActiveRecord: 20.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 37ms (Views: 33.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (14.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 29ms (Views: 23.8ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (10.4ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 16:53:51.889917"], ["updated_at", "2015-06-18 16:53:51.889917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.8ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 17ms (Views: 13.4ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.1ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (11.2ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (8.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (1.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 16:54:26', '2015-06-18 16:54:26') Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 16:54:26', '2015-06-18 16:54:26') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (2.0ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 16:54:26', '2015-06-18 16:54:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 16:54:26', '2015-06-18 16:54:26', 298486374)  (1.0ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (1.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (129.8ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.0ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 740ms (Views: 716.0ms | ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (23.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (11.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.2ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (150.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (1.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (21.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (525.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 585ms (Views: 524.3ms | ActiveRecord: 17.5ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 16:54:28.891894"], ["updated_at", "2015-06-18 16:54:28.891894"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 16:54:28.894587"], ["updated_at", "2015-06-18 16:54:28.894587"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:54:28.896860"], ["updated_at", "2015-06-18 16:54:28.896860"]] SQL (29.8ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:54:28.899275"], ["updated_at", "2015-06-18 16:54:28.899275"]] SQL (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:54:28.930840"], ["updated_at", "2015-06-18 16:54:28.930840"]] SQL (0.9ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:54:28.934040"], ["updated_at", "2015-06-18 16:54:28.934040"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 16:54:28.937887"], ["updated_at", "2015-06-18 16:54:28.937887"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 390ms (ActiveRecord: 35.6ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (26.7ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 58ms (Views: 53.0ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (2.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 37ms (Views: 29.5ms | ActiveRecord: 6.0ms)  (1.7ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.8ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (13.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 46ms (Views: 42.1ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 16:54:29.226384"], ["updated_at", "2015-06-18 16:54:29.226384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.6ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (16.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (34.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 129ms (Views: 117.0ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 16:54:29.496632"], ["updated_at", "2015-06-18 16:54:29.496632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (2.3ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 1209.5ms Sent mail to MyString (79.7ms) Date: Thu, 18 Jun 2015 09:54:30 -0700 From: noreply@MyString To: MyString Message-ID: <5582f7c6cc9ce_f56f3ff28d0601fc80422@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 1362ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (39.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (27.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 155ms (Views: 151.3ms | ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434646471_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 16:54:31.128312"], ["updated_at", "2015-06-18 16:54:31.128312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (26.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 56ms (Views: 51.9ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (11.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 29ms (Views: 24.1ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 16:54:31.261740"], ["updated_at", "2015-06-18 16:54:31.261740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (241.3ms) DROP DATABASE IF EXISTS "dummy_test"  (1127.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (34.2ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying, "email" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (11.6ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (5.1ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.5ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.3ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (5.8ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.6ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (1.9ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (7.0ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (36.2ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (13.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.0ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.0ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.1ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (8.1ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (10.1ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (7.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (4.0ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.6ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.5ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (8.5ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (10.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.2ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 17:38:02', '2015-06-18 17:38:02') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 17:38:02', '2015-06-18 17:38:02') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:38:02', '2015-06-18 17:38:02', 298486374)  (1.4ms) COMMIT  (7.4ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (17.4ms) PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (119.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 2623ms (Views: 2610.9ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (12.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (43.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (59.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 146ms (Views: 85.7ms | ActiveRecord: 19.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (38.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (61.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 91ms (Views: 87.0ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434649085_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 17:38:05.396283"], ["updated_at", "2015-06-18 17:38:05.396283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 72ms (ActiveRecord: 1.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (11.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 54ms (Views: 50.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (13.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 48ms (Views: 44.1ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (105.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (110.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 139ms (Views: 134.3ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (10.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 17:38:05.756174"], ["updated_at", "2015-06-18 17:38:05.756174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 17:38:05.797842"], ["updated_at", "2015-06-18 17:38:05.797842"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 ApplicationMailer#account: processed outbound mail in 1.4ms PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (1.2ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 284.7ms Sent mail to MyString (10.3ms) Date: Thu, 18 Jun 2015 10:38:06 -0700 From: noreply@.com To: MyString Message-ID: <558301fe217ef_f8af3fcd88820204643c0@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 345ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.2ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 17:38:06.312895"], ["updated_at", "2015-06-18 17:38:06.312895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (29.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 52ms (Views: 47.7ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (20.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (109.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.1ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (28.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (276.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 297ms (Views: 280.4ms | ActiveRecord: 15.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 17:38:06.713755"], ["updated_at", "2015-06-18 17:38:06.713755"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-18 17:38:06.715420"], ["updated_at", "2015-06-18 17:38:06.715420"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:38:06.718014"], ["updated_at", "2015-06-18 17:38:06.718014"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:38:06.720504"], ["updated_at", "2015-06-18 17:38:06.720504"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:38:06.723430"], ["updated_at", "2015-06-18 17:38:06.723430"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:38:06.725473"], ["updated_at", "2015-06-18 17:38:06.725473"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 17:38:06.727792"], ["updated_at", "2015-06-18 17:38:06.727792"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 23ms (ActiveRecord: 5.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (534.9ms) DROP DATABASE IF EXISTS "dummy_test"  (1199.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.0ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying, "email" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.9ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.6ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.1ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (6.4ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.3ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (7.4ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.1ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.7ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.0ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (7.9ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.3ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.6ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (25.0ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (9.4ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.8ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.8ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.9ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.2ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (75.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.0ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 17:48:21', '2015-06-18 17:48:21', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 17:48:21', '2015-06-18 17:48:21') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 17:48:21', '2015-06-18 17:48:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:48:21', '2015-06-18 17:48:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:48:21', '2015-06-18 17:48:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 17:48:21', '2015-06-18 17:48:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 17:48:21', '2015-06-18 17:48:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 17:48:21', '2015-06-18 17:48:21', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 17:48:21', '2015-06-18 17:48:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 17:48:21', '2015-06-18 17:48:21', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 17:48:22', '2015-06-18 17:48:22') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 17:48:22', '2015-06-18 17:48:22') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 17:48:22', '2015-06-18 17:48:22') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 17:48:22', '2015-06-18 17:48:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 17:48:22', '2015-06-18 17:48:22', 298486374)  (0.9ms) COMMIT  (12.8ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.8ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (54.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (81.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 833ms (Views: 714.1ms | ActiveRecord: 9.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (35.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 52ms (Views: 46.4ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (22.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (154.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (36.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (37.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (61.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (599.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 616ms (Views: 596.5ms | ActiveRecord: 16.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 17:48:24.019788"], ["updated_at", "2015-06-18 17:48:24.019788"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 17:48:24.022001"], ["updated_at", "2015-06-18 17:48:24.022001"]] SQL (2.0ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:48:24.024222"], ["updated_at", "2015-06-18 17:48:24.024222"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:48:24.028598"], ["updated_at", "2015-06-18 17:48:24.028598"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:48:24.031514"], ["updated_at", "2015-06-18 17:48:24.031514"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:48:24.033674"], ["updated_at", "2015-06-18 17:48:24.033674"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 17:48:24.035872"], ["updated_at", "2015-06-18 17:48:24.035872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 167ms (ActiveRecord: 7.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.2ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 17:48:24.049973"], ["updated_at", "2015-06-18 17:48:24.049973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 17:48:24.098972"], ["updated_at", "2015-06-18 17:48:24.098972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (16.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 49ms (Views: 44.9ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (10.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.9ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 20ms (Views: 15.4ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 17:48:24.297196"], ["updated_at", "2015-06-18 17:48:24.297196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 ApplicationMailer#account: processed outbound mail in 1.4ms PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (1.3ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 372.4ms Sent mail to MyString (10.1ms) Date: Thu, 18 Jun 2015 10:48:24 -0700 From: noreply@.com To: MyString Message-ID: <55830468afe5e_f97c3fdd284602044632@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 432ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (26.9ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 61ms (Views: 56.4ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (5.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 39ms (Views: 35.6ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (19.3ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 45ms (Views: 41.7ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434649704_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 17:48:24.981697"], ["updated_at", "2015-06-18 17:48:24.981697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (18.4ms) ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (11.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.7ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-18 18:22:21', '2015-06-18 18:22:21') Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-18 18:22:21', '2015-06-18 18:22:21') Fixture Delete (2.0ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-18 18:22:21', '2015-06-18 18:22:21', 298486374)  (1.3ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Slider Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::Thumbnail Load (0.9ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (45.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (74.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 3040ms (Views: 2953.6ms | ActiveRecord: 8.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.2ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.2ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (14.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (25.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.7ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (9.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (154.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (27.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (509.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 529ms (Views: 509.6ms | ActiveRecord: 16.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}}  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["slug", "test-page"], ["created_at", "2015-06-18 18:22:25.892430"], ["updated_at", "2015-06-18 18:22:25.892430"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-18 18:22:25.894725"], ["updated_at", "2015-06-18 18:22:25.894725"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 18:22:25.897013"], ["updated_at", "2015-06-18 18:22:25.897013"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-18 18:22:25.899306"], ["updated_at", "2015-06-18 18:22:25.899306"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 18:22:25.902037"], ["updated_at", "2015-06-18 18:22:25.902037"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-18 18:22:25.904402"], ["updated_at", "2015-06-18 18:22:25.904402"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 18:22:25.906999"], ["updated_at", "2015-06-18 18:22:25.906999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 181ms (ActiveRecord: 5.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (16.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 32ms (Views: 26.6ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_accounts"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (25.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 58ms (Views: 54.2ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["created_at", "2015-06-18 18:22:26.108811"], ["updated_at", "2015-06-18 18:22:26.108811"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (12.3ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (12.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (16.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 33ms (Views: 27.3ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (11.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.6ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (21.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 48ms (Views: 44.7ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_images" ("file", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["file", "/images/1434651746_test_name.png"], ["name", "test_name"], ["created_at", "2015-06-18 18:22:26.339527"], ["updated_at", "2015-06-18 18:22:26.339527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.5ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Jimmy"], ["email", "jimmy@test.com"], ["message", "hello there"], ["created_at", "2015-06-18 18:22:26.393760"], ["updated_at", "2015-06-18 18:22:26.393760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 ApplicationMailer#account: processed outbound mail in 1.5ms PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/contact_mailer/new_contact.text.haml (1.7ms) PagesCms::ContactMailer#new_contact: processed outbound mail in 394.9ms Sent mail to MyString (32.3ms) Date: Thu, 18 Jun 2015 11:22:26 -0700 From: noreply@.com To: MyString Message-ID: <55830c62d1a20_fbdb3fe2c886020053230@Colins-MacBook-Pro.local.mail> Subject: New contact Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You've received a new contact form from your site MyString From: Jimmy Email: jimmy@test.com Message: hello there Redirected to where_i_came_from Completed 302 Found in 476ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 18:22:26.877271"], ["updated_at", "2015-06-18 18:22:26.877271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 29ms (Views: 25.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (5.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 Completed 200 OK in 42ms (Views: 37.7ms | ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK PagesCms::Account Load (17.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 1: SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHER... ^ : SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (13.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 1: SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHER... ^ : SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (17.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 1: SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHER... ^ : SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (13.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 1: SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHER... ^ : SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')  (248.9ms) DROP DATABASE IF EXISTS "dummy_test"  (1176.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (55.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.1ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.1ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (5.0ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.3ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (7.0ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (3.7ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (7.2ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (6.8ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.7ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.0ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.4ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.2ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.1ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (7.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.4ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.5ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.8ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.7ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.7ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.1ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (24.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:21:52', '2015-06-20 23:21:52') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:21:52', '2015-06-20 23:21:52') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:21:52', '2015-06-20 23:21:52', 298486374)  (1.1ms) COMMIT  (8.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test -----------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (6.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-20 23:21:52.716526"], ["updated_at", "2015-06-20 23:21:52.716526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload --------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (10.5ms) PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.7ms) Completed 500 Internal Server Error in 2828ms (ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (57.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (71.3ms) PagesCms::Account Load (4.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 500 Internal Server Error in 111ms (ActiveRecord: 6.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML Redirected to http://test.host/admin/accounts Filter chain halted as :selected_account rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (67.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (22.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (32.3ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Delete (1.0ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (12.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:24:20', '2015-06-20 23:24:20') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (1.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:24:20', '2015-06-20 23:24:20') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (11.1ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:20', '2015-06-20 23:24:20', 298486374)  (387.6ms) COMMIT  (30.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.3ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.7ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 712ms (Views: 624.7ms | ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (7.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:24:36', '2015-06-20 23:24:36') Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:24:36', '2015-06-20 23:24:36') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:24:36', '2015-06-20 23:24:36', 298486374)  (1.0ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.1ms) PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.8ms) Completed 200 OK in 269ms (Views: 240.4ms | ActiveRecord: 6.4ms)  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:25:00', '2015-06-20 23:25:00') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:25:00', '2015-06-20 23:25:00') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:25:00', '2015-06-20 23:25:00', 298486374)  (1.1ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (92.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (116.1ms) PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (27.4ms) Completed 200 OK in 399ms (Views: 389.6ms | ActiveRecord: 6.7ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434842701_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-20 23:25:01.418548"], ["updated_at", "2015-06-20 23:25:01.418548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 32ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (14.7ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) Completed 200 OK in 55ms (Views: 45.0ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-20 23:25:01.759094"], ["updated_at", "2015-06-20 23:25:01.759094"]] SQL (1.1ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-20 23:25:01.761818"], ["updated_at", "2015-06-20 23:25:01.761818"]] SQL (0.9ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:25:01.765401"], ["updated_at", "2015-06-20 23:25:01.765401"]] SQL (1.7ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:25:01.768926"], ["updated_at", "2015-06-20 23:25:01.768926"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:25:01.772993"], ["updated_at", "2015-06-20 23:25:01.772993"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:25:01.775409"], ["updated_at", "2015-06-20 23:25:01.775409"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-20 23:25:01.778031"], ["updated_at", "2015-06-20 23:25:01.778031"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 281ms (ActiveRecord: 10.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) ROLLBACK  (0.3ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (166.9ms) Completed 500 Internal Server Error in 206ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (36.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 94ms (Views: 85.5ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 52ms (Views: 43.1ms | ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-20 23:25:02.247514"], ["updated_at", "2015-06-20 23:25:02.247514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 21ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (35.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (95.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (112.4ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 157ms (Views: 149.1ms | ActiveRecord: 5.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (28.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (39.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 65ms (Views: 56.1ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (21.2ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (3.6ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:29:29', '2015-06-20 23:29:29') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (1.0ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:29:29', '2015-06-20 23:29:29') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:29:29', '2015-06-20 23:29:29', 298486374)  (2.0ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (40.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (80.8ms) PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (2.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (73.7ms) Completed 200 OK in 859ms (Views: 832.3ms | ActiveRecord: 7.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434842970_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-20 23:29:30.665650"], ["updated_at", "2015-06-20 23:29:30.665650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 19ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (19.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 51ms (Views: 43.8ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-20 23:29:30.893736"], ["updated_at", "2015-06-20 23:29:30.893736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 500 Internal Server Error in 34ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (40.4ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 97ms (Views: 88.5ms | ActiveRecord: 5.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (129.7ms) Completed 500 Internal Server Error in 176ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-20 23:29:31.451545"], ["updated_at", "2015-06-20 23:29:31.451545"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-20 23:29:31.454053"], ["updated_at", "2015-06-20 23:29:31.454053"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:29:31.456375"], ["updated_at", "2015-06-20 23:29:31.456375"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:29:31.458937"], ["updated_at", "2015-06-20 23:29:31.458937"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:29:31.461694"], ["updated_at", "2015-06-20 23:29:31.461694"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:29:31.463943"], ["updated_at", "2015-06-20 23:29:31.463943"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-20 23:29:31.466536"], ["updated_at", "2015-06-20 23:29:31.466536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 83ms (ActiveRecord: 7.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-20 23:29:31.573907"], ["updated_at", "2015-06-20 23:29:31.573907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 12ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (24.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (83.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (99.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 132ms (Views: 124.3ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (14.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 54ms (Views: 46.9ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (13.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (16.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.8ms) Completed 200 OK in 43ms (Views: 34.9ms | ActiveRecord: 5.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (1.0ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Delete (1.0ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (1.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.6ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:32:11', '2015-06-20 23:32:11') Fixture Delete (0.9ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:32:11', '2015-06-20 23:32:11') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:32:11', '2015-06-20 23:32:11', 298486374)  (1.3ms) COMMIT  (13.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.6ms) PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 648ms (Views: 577.6ms | ActiveRecord: 5.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (21.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (239.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (255.8ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 330ms (Views: 275.4ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (12.0ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 37ms (Views: 30.0ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 44ms (Views: 36.6ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-20 23:32:13.023798"], ["updated_at", "2015-06-20 23:32:13.023798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (9.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (45.7ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 76ms (Views: 71.7ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-20 23:32:13.478447"], ["updated_at", "2015-06-20 23:32:13.478447"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-20 23:32:13.481500"], ["updated_at", "2015-06-20 23:32:13.481500"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:32:13.483829"], ["updated_at", "2015-06-20 23:32:13.483829"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:32:13.486460"], ["updated_at", "2015-06-20 23:32:13.486460"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:32:13.489287"], ["updated_at", "2015-06-20 23:32:13.489287"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:32:13.491688"], ["updated_at", "2015-06-20 23:32:13.491688"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-20 23:32:13.494217"], ["updated_at", "2015-06-20 23:32:13.494217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 316ms (ActiveRecord: 8.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (48.2ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 89ms (Views: 81.9ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (92.5ms) Completed 500 Internal Server Error in 118ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (10.7ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (5.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-20 23:32:13.839954"], ["updated_at", "2015-06-20 23:32:13.839954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (1.2ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.6ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 500 Internal Server Error in 28ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434843134_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-20 23:32:14.064803"], ["updated_at", "2015-06-20 23:32:14.064803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 13ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (32.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 70ms (Views: 62.9ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (47.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_accounts" Fixture Insert (32.1ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (14.0ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-20 23:42:55', '2015-06-20 23:42:55') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (6.7ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-20 23:42:55', '2015-06-20 23:42:55') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-20 23:42:55', '2015-06-20 23:42:55', 298486374)  (1.7ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (77.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (114.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (30.9ms) Completed 200 OK in 825ms (Views: 801.1ms | ActiveRecord: 4.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.5ms) Completed 200 OK in 66ms (Views: 48.9ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434843776_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-20 23:42:56.820312"], ["updated_at", "2015-06-20 23:42:56.820312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.5ms) Completed 200 OK in 41ms (Views: 33.8ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-20 23:42:56.921738"], ["updated_at", "2015-06-20 23:42:56.921738"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 16ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (109.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (125.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.4ms) Completed 200 OK in 162ms (Views: 155.6ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (11.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.5ms) Completed 200 OK in 29ms (Views: 23.2ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 64ms (Views: 58.3ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-20 23:42:57.501341"], ["updated_at", "2015-06-20 23:42:57.501341"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-20 23:42:57.504269"], ["updated_at", "2015-06-20 23:42:57.504269"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:42:57.506552"], ["updated_at", "2015-06-20 23:42:57.506552"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:42:57.509092"], ["updated_at", "2015-06-20 23:42:57.509092"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:42:57.512411"], ["updated_at", "2015-06-20 23:42:57.512411"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:42:57.515174"], ["updated_at", "2015-06-20 23:42:57.515174"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-20 23:42:57.517750"], ["updated_at", "2015-06-20 23:42:57.517750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 333ms (ActiveRecord: 7.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (79.2ms) Completed 500 Internal Server Error in 125ms (ActiveRecord: 1.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (53.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 96ms (Views: 87.6ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-20 23:42:57.852584"], ["updated_at", "2015-06-20 23:42:57.852584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (24.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (6.1ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (19.9ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-21 00:42:49', '2015-06-21 00:42:49') Fixture Delete (3.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.7ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-21 00:42:49', '2015-06-21 00:42:49') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:42:49', '2015-06-21 00:42:49', 298486374)  (9.0ms) COMMIT  (5.7ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (117.3ms) Completed 500 Internal Server Error in 1921ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-21 00:42:52.616931"], ["updated_at", "2015-06-21 00:42:52.616931"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-21 00:42:52.619937"], ["updated_at", "2015-06-21 00:42:52.619937"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:42:52.622245"], ["updated_at", "2015-06-21 00:42:52.622245"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:42:52.624406"], ["updated_at", "2015-06-21 00:42:52.624406"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:42:52.626982"], ["updated_at", "2015-06-21 00:42:52.626982"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:42:52.629151"], ["updated_at", "2015-06-21 00:42:52.629151"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-21 00:42:52.631816"], ["updated_at", "2015-06-21 00:42:52.631816"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 390ms (ActiveRecord: 8.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (38.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (36.3ms) Completed 200 OK in 162ms (Views: 152.2ms | ActiveRecord: 7.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (293.2ms) Completed 500 Internal Server Error in 321ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (31.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (45.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 79ms (Views: 75.2ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 37ms (Views: 30.5ms | ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:42:53.402979"], ["updated_at", "2015-06-21 00:42:53.402979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (33.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 81ms (Views: 69.4ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434847373_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-21 00:42:53.582909"], ["updated_at", "2015-06-21 00:42:53.582909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 56ms (Views: 46.1ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-21 00:42:53.671366"], ["updated_at", "2015-06-21 00:42:53.671366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (22.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (62.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (79.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 137ms (Views: 129.4ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (14.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.1ms) Completed 200 OK in 59ms (Views: 51.9ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-21 00:44:28', '2015-06-21 00:44:28') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-21 00:44:28', '2015-06-21 00:44:28') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:44:28', '2015-06-21 00:44:28', 298486374)  (1.8ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (88.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (144.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (20.0ms) Completed 200 OK in 770ms (Views: 745.0ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.5ms) Completed 200 OK in 34ms (Views: 27.7ms | ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434847469_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-21 00:44:29.841965"], ["updated_at", "2015-06-21 00:44:29.841965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 33ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 53ms (Views: 45.6ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (37.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.3ms) Completed 200 OK in 77ms (Views: 69.7ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (85.7ms) Completed 500 Internal Server Error in 140ms (ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (2.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-21 00:44:30.591131"], ["updated_at", "2015-06-21 00:44:30.591131"]] SQL (1.0ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-21 00:44:30.594439"], ["updated_at", "2015-06-21 00:44:30.594439"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:44:30.598218"], ["updated_at", "2015-06-21 00:44:30.598218"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:44:30.600856"], ["updated_at", "2015-06-21 00:44:30.600856"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:44:30.604047"], ["updated_at", "2015-06-21 00:44:30.604047"]] SQL (0.9ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:44:30.606571"], ["updated_at", "2015-06-21 00:44:30.606571"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-21 00:44:30.609500"], ["updated_at", "2015-06-21 00:44:30.609500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 460ms (ActiveRecord: 9.7ms)  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (24.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (80.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (95.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.8ms) Completed 200 OK in 140ms (Views: 129.2ms | ActiveRecord: 5.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 41ms (Views: 34.0ms | ActiveRecord: 4.1ms)  (0.8ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (1.0ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (21.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (26.6ms) PagesCms::Account Load (3.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.7ms) Completed 200 OK in 70ms (Views: 56.9ms | ActiveRecord: 10.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-21 00:44:30.997310"], ["updated_at", "2015-06-21 00:44:30.997310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:44:31.009293"], ["updated_at", "2015-06-21 00:44:31.009293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (20.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (43.1ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-21 00:45:44', '2015-06-21 00:45:44', 980190962) Fixture Delete (1.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-21 00:45:44', '2015-06-21 00:45:44') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-21 00:45:44', '2015-06-21 00:45:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:45:44', '2015-06-21 00:45:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:45:44', '2015-06-21 00:45:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.8ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:45:44', '2015-06-21 00:45:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:45:44', '2015-06-21 00:45:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-21 00:45:44', '2015-06-21 00:45:44', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-21 00:45:45', '2015-06-21 00:45:45') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (2.9ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-21 00:45:45', '2015-06-21 00:45:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-21 00:45:45', '2015-06-21 00:45:45') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-21 00:45:45', '2015-06-21 00:45:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:45:45', '2015-06-21 00:45:45', 298486374)  (96.0ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:45:45.709201"], ["updated_at", "2015-06-21 00:45:45.709201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (285.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 1452ms (Views: 1191.1ms | ActiveRecord: 7.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (432.6ms) Completed 500 Internal Server Error in 520ms (ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-21 00:45:47.986665"], ["updated_at", "2015-06-21 00:45:47.986665"]] SQL (0.9ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-21 00:45:47.991753"], ["updated_at", "2015-06-21 00:45:47.991753"]] SQL (0.8ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:45:47.995039"], ["updated_at", "2015-06-21 00:45:47.995039"]] SQL (1.7ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:45:47.998488"], ["updated_at", "2015-06-21 00:45:47.998488"]] SQL (1.3ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:45:48.002799"], ["updated_at", "2015-06-21 00:45:48.002799"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:45:48.006477"], ["updated_at", "2015-06-21 00:45:48.006477"]] SQL (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-21 00:45:48.010424"], ["updated_at", "2015-06-21 00:45:48.010424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 233ms (ActiveRecord: 11.7ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (22.6ms) PagesCms::Account Load (1.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 72ms (Views: 58.3ms | ActiveRecord: 7.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.8ms) Completed 500 Internal Server Error in 37ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (31.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (45.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.9ms) Completed 200 OK in 86ms (Views: 81.3ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-21 00:45:48.500932"], ["updated_at", "2015-06-21 00:45:48.500932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 14ms (ActiveRecord: 1.8ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.9ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (33.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (74.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (96.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 127ms (Views: 118.5ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (18.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (22.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 54ms (Views: 45.4ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (16.1ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 61ms (Views: 53.0ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434847548_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-21 00:45:48.811718"], ["updated_at", "2015-06-21 00:45:48.811718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 12ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (22.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 61ms (Views: 52.9ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (28.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (21.2ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (57.9ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-21 00:46:24', '2015-06-21 00:46:24') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (25.6ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-21 00:46:24', '2015-06-21 00:46:24') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:46:24', '2015-06-21 00:46:24', 298486374)  (18.6ms) COMMIT  (7.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434847585_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-21 00:46:25.242008"], ["updated_at", "2015-06-21 00:46:25.242008"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 318ms (ActiveRecord: 2.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (1.0ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (37.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) Completed 200 OK in 785ms (Views: 772.2ms | ActiveRecord: 7.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.9ms) Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.8ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.5ms) Completed 200 OK in 109ms (Views: 53.6ms | ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (248.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (287.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.8ms) Completed 200 OK in 456ms (Views: 449.3ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-21 00:46:27.540397"], ["updated_at", "2015-06-21 00:46:27.540397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (12.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 68ms (Views: 60.8ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:46:27.922052"], ["updated_at", "2015-06-21 00:46:27.922052"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (17.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.3ms) Completed 200 OK in 87ms (Views: 74.3ms | ActiveRecord: 6.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.9ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (49.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 91ms (Views: 81.1ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (88.0ms) Completed 500 Internal Server Error in 152ms (ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-21 00:46:28.787652"], ["updated_at", "2015-06-21 00:46:28.787652"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-21 00:46:28.791815"], ["updated_at", "2015-06-21 00:46:28.791815"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:46:28.794665"], ["updated_at", "2015-06-21 00:46:28.794665"]] SQL (43.6ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:46:28.797229"], ["updated_at", "2015-06-21 00:46:28.797229"]] SQL (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:46:28.843600"], ["updated_at", "2015-06-21 00:46:28.843600"]] SQL (1.1ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:46:28.848595"], ["updated_at", "2015-06-21 00:46:28.848595"]] SQL (3.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-21 00:46:28.853033"], ["updated_at", "2015-06-21 00:46:28.853033"]]  (1.4ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 246ms (ActiveRecord: 56.5ms)  (1.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (1.1ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.9ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (1.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (27.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (52.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 105ms (Views: 97.8ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (27.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (32.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (13.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-21 00:51:16', '2015-06-21 00:51:16') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-21 00:51:16', '2015-06-21 00:51:16') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-21 00:51:16', '2015-06-21 00:51:16', 298486374)  (5.9ms) COMMIT  (12.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (1.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (262.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 1481ms (Views: 1348.6ms | ActiveRecord: 8.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (212.6ms) Completed 500 Internal Server Error in 293ms (ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.1ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-21 00:51:19.097636"], ["updated_at", "2015-06-21 00:51:19.097636"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-21 00:51:19.100637"], ["updated_at", "2015-06-21 00:51:19.100637"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:51:19.103094"], ["updated_at", "2015-06-21 00:51:19.103094"]] SQL (1.3ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:51:19.105601"], ["updated_at", "2015-06-21 00:51:19.105601"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:51:19.109230"], ["updated_at", "2015-06-21 00:51:19.109230"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:51:19.111723"], ["updated_at", "2015-06-21 00:51:19.111723"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-21 00:51:19.114422"], ["updated_at", "2015-06-21 00:51:19.114422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 433ms (ActiveRecord: 8.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) Completed 200 OK in 104ms (Views: 95.6ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 70ms (Views: 67.4ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.5ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (121.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (149.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.0ms) Completed 200 OK in 232ms (Views: 218.0ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (15.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 52ms (Views: 43.0ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-21 00:51:20.005784"], ["updated_at", "2015-06-21 00:51:20.005784"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 13ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.5ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (18.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (22.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.0ms) Completed 200 OK in 67ms (Views: 58.0ms | ActiveRecord: 6.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (1.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (16.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (41.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.5ms) Completed 200 OK in 91ms (Views: 84.4ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:51:20.246031"], ["updated_at", "2015-06-21 00:51:20.246031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (32.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) Completed 200 OK in 87ms (Views: 76.9ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434847880_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-21 00:51:20.453540"], ["updated_at", "2015-06-21 00:51:20.453540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK PagesCms::Account Load (29.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (88.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Delete (2.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (12.2ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (1.9ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (4.8ms) DELETE FROM "pages_cms_images" Fixture Insert (2.0ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 16:47:21', '2015-06-22 16:47:21') Fixture Delete (1.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 16:47:21', '2015-06-22 16:47:21') Fixture Delete (1.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962) Fixture Insert (1.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 16:47:21', '2015-06-22 16:47:21', 298486374)  (1.5ms) COMMIT  (5.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (16.5ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (246.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 720ms (Views: 662.9ms | ActiveRecord: 7.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (205.2ms) Completed 500 Internal Server Error in 255ms (ActiveRecord: 1.5ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (1.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (1.9ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (24.4ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 16:47:23.661033"], ["updated_at", "2015-06-22 16:47:23.661033"]] SQL (1.4ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 16:47:23.665222"], ["updated_at", "2015-06-22 16:47:23.665222"]] SQL (1.0ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 16:47:23.670570"], ["updated_at", "2015-06-22 16:47:23.670570"]] SQL (1.4ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 16:47:23.674263"], ["updated_at", "2015-06-22 16:47:23.674263"]] SQL (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 16:47:23.678166"], ["updated_at", "2015-06-22 16:47:23.678166"]] SQL (1.3ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 16:47:23.681343"], ["updated_at", "2015-06-22 16:47:23.681343"]] SQL (0.9ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 16:47:23.685829"], ["updated_at", "2015-06-22 16:47:23.685829"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 469ms (ActiveRecord: 35.7ms)  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 76ms (Views: 68.3ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (77.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (94.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 252ms (Views: 242.3ms | ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (1.7ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (23.0ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 16:47:24.412353"], ["updated_at", "2015-06-22 16:47:24.412353"]]  (1.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 33ms (ActiveRecord: 25.1ms)  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (1.1ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (21.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (27.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (2.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.8ms) Completed 200 OK in 85ms (Views: 71.1ms | ActiveRecord: 9.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (2.0ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434991644_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 16:47:24.673662"], ["updated_at", "2015-06-22 16:47:24.673662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 16ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (32.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.9ms) Completed 200 OK in 86ms (Views: 73.5ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (21.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (44.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.1ms) Completed 200 OK in 94ms (Views: 88.5ms | ActiveRecord: 4.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 44ms (Views: 41.5ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (1.9ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 44ms (Views: 33.6ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 16:47:25.151855"], ["updated_at", "2015-06-22 16:47:25.151855"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK PagesCms::Account Load (21.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (34.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (130.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (19.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (30.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Delete (1.2ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:01:58', '2015-06-22 18:01:58') Fixture Delete (3.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:01:58', '2015-06-22 18:01:58') Fixture Delete (1.1ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:01:58', '2015-06-22 18:01:58', 298486374)  (1.3ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (20.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (255.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.2ms) Completed 200 OK in 763ms (Views: 673.1ms | ActiveRecord: 6.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (10.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:01:59.749544"], ["updated_at", "2015-06-22 18:01:59.749544"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 18:01:59.752653"], ["updated_at", "2015-06-22 18:01:59.752653"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:01:59.755460"], ["updated_at", "2015-06-22 18:01:59.755460"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:01:59.757894"], ["updated_at", "2015-06-22 18:01:59.757894"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:01:59.760845"], ["updated_at", "2015-06-22 18:01:59.760845"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:01:59.763187"], ["updated_at", "2015-06-22 18:01:59.763187"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:01:59.765767"], ["updated_at", "2015-06-22 18:01:59.765767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 362ms (ActiveRecord: 17.9ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (81.6ms) Completed 500 Internal Server Error in 107ms (ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:01:59.985184"], ["updated_at", "2015-06-22 18:01:59.985184"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (2.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 17.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434996120_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:02:00.339536"], ["updated_at", "2015-06-22 18:02:00.339536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 24ms (ActiveRecord: 1.6ms)  (0.9ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (31.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) Completed 200 OK in 69ms (Views: 60.8ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (14.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (62.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (78.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.6ms) Completed 200 OK in 134ms (Views: 123.5ms | ActiveRecord: 6.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (10.1ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:02:00.613510"], ["updated_at", "2015-06-22 18:02:00.613510"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 19ms (ActiveRecord: 10.9ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (19.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (24.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.1ms) Completed 200 OK in 65ms (Views: 55.3ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.7ms) Completed 200 OK in 70ms (Views: 62.3ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (2.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (10.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.1ms) Completed 200 OK in 81ms (Views: 70.9ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (19.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (57.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 333ms (Views: 327.5ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK PagesCms::Account Load (2.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:02:29', '2015-06-22 18:02:29') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:02:29', '2015-06-22 18:02:29') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:02:29', '2015-06-22 18:02:29', 298486374)  (1.0ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (1.1ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (25.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (358.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (389.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (52.9ms) Completed 200 OK in 832ms (Views: 773.5ms | ActiveRecord: 9.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:02:30.790508"], ["updated_at", "2015-06-22 18:02:30.790508"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 17ms (ActiveRecord: 2.3ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.8ms) Completed 200 OK in 51ms (Views: 43.9ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (11.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (14.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 53ms (Views: 44.5ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434996150_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:02:30.971324"], ["updated_at", "2015-06-22 18:02:30.971324"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 14ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 56ms (Views: 49.3ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:02:31.290676"], ["updated_at", "2015-06-22 18:02:31.290676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:02:31.419713"], ["updated_at", "2015-06-22 18:02:31.419713"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:02:31.422188"], ["updated_at", "2015-06-22 18:02:31.422188"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:02:31.424520"], ["updated_at", "2015-06-22 18:02:31.424520"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:02:31.426989"], ["updated_at", "2015-06-22 18:02:31.426989"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:02:31.429785"], ["updated_at", "2015-06-22 18:02:31.429785"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:02:31.432107"], ["updated_at", "2015-06-22 18:02:31.432107"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:02:31.434917"], ["updated_at", "2015-06-22 18:02:31.434917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 116ms (ActiveRecord: 7.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (113.8ms) Completed 500 Internal Server Error in 137ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (36.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) Completed 200 OK in 87ms (Views: 68.3ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (15.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (40.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.8ms) Completed 200 OK in 76ms (Views: 70.7ms | ActiveRecord: 4.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.9ms) Completed 200 OK in 63ms (Views: 53.4ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK PagesCms::Account Load (2.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (42.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (15.9ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:05:31', '2015-06-22 18:05:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:05:31', '2015-06-22 18:05:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:05:31', '2015-06-22 18:05:31', 298486374)  (1.3ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (169.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (226.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (20.8ms) Completed 200 OK in 1041ms (Views: 1020.7ms | ActiveRecord: 4.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.9ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434996332_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:05:32.929169"], ["updated_at", "2015-06-22 18:05:32.929169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 67ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (32.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.3ms) Completed 200 OK in 69ms (Views: 62.6ms | ActiveRecord: 3.9ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (23.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (183.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (210.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) Completed 200 OK in 257ms (Views: 238.9ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (7.9ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (44.6ms) PagesCms::Account Load (18.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (3.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 133ms (Views: 95.9ms | ActiveRecord: 34.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:05:34.438725"], ["updated_at", "2015-06-22 18:05:34.438725"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 19ms (ActiveRecord: 2.5ms)  (1.7ms) SELECT COUNT(*) FROM "pages_cms_articles"  (5.5ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (1.1ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (20.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (24.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.9ms) Completed 200 OK in 76ms (Views: 66.7ms | ActiveRecord: 7.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (16.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.2ms) Completed 200 OK in 66ms (Views: 56.3ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (1.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:05:35.094874"], ["updated_at", "2015-06-22 18:05:35.094874"]] SQL (1.5ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 18:05:35.097973"], ["updated_at", "2015-06-22 18:05:35.097973"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:05:35.101472"], ["updated_at", "2015-06-22 18:05:35.101472"]] SQL (16.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:05:35.104017"], ["updated_at", "2015-06-22 18:05:35.104017"]] SQL (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:05:35.122643"], ["updated_at", "2015-06-22 18:05:35.122643"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:05:35.135267"], ["updated_at", "2015-06-22 18:05:35.135267"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:05:35.138438"], ["updated_at", "2015-06-22 18:05:35.138438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 460ms (ActiveRecord: 25.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (103.7ms) Completed 500 Internal Server Error in 132ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (47.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) Completed 200 OK in 80ms (Views: 71.3ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:05:35.534067"], ["updated_at", "2015-06-22 18:05:35.534067"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK PagesCms::Account Load (24.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (54.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (138.8ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.7ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (15.7ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:06:49', '2015-06-22 18:06:49') Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:06:49', '2015-06-22 18:06:49') Fixture Delete (1.1ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.0ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:06:49', '2015-06-22 18:06:49', 298486374)  (1.4ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:06:49.861738"], ["updated_at", "2015-06-22 18:06:49.861738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (1.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (44.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (101.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.7ms) Completed 200 OK in 853ms (Views: 831.5ms | ActiveRecord: 4.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434996411_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:06:51.033619"], ["updated_at", "2015-06-22 18:06:51.033619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 19ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.3ms) Completed 200 OK in 73ms (Views: 64.2ms | ActiveRecord: 5.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:06:51.295159"], ["updated_at", "2015-06-22 18:06:51.295159"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:06:51.297829"], ["updated_at", "2015-06-22 18:06:51.297829"]] SQL (0.9ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:06:51.300441"], ["updated_at", "2015-06-22 18:06:51.300441"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:06:51.304088"], ["updated_at", "2015-06-22 18:06:51.304088"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:06:51.306976"], ["updated_at", "2015-06-22 18:06:51.306976"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:06:51.309270"], ["updated_at", "2015-06-22 18:06:51.309270"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:06:51.311868"], ["updated_at", "2015-06-22 18:06:51.311868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 166ms (ActiveRecord: 8.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (59.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 104ms (Views: 94.9ms | ActiveRecord: 5.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:06:51.621290"], ["updated_at", "2015-06-22 18:06:51.621290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (12.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.0ms) Completed 200 OK in 71ms (Views: 63.7ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (28.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (227.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (262.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 289ms (Views: 280.7ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (15.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (17.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 69ms (Views: 61.0ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (14.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 52ms (Views: 42.0ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK PagesCms::Account Load (3.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (19.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (28.3ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:07:41', '2015-06-22 18:07:41', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:07:41', '2015-06-22 18:07:41') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:07:41', '2015-06-22 18:07:41', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:07:41', '2015-06-22 18:07:41', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:07:41', '2015-06-22 18:07:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (254.0ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:07:41', '2015-06-22 18:07:41', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:07:41', '2015-06-22 18:07:41', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:07:42', '2015-06-22 18:07:42', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:07:42', '2015-06-22 18:07:42') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:07:42', '2015-06-22 18:07:42') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:07:42', '2015-06-22 18:07:42') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:07:42', '2015-06-22 18:07:42', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:07:42', '2015-06-22 18:07:42', 298486374)  (1.0ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:07:42.345895"], ["updated_at", "2015-06-22 18:07:42.345895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (4.5ms) PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (1.0ms) Completed 200 OK in 3173ms (Views: 3149.6ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (33.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (46.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (201.9ms) Completed 200 OK in 530ms (Views: 521.9ms | ActiveRecord: 6.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (43.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.4ms) Completed 200 OK in 121ms (Views: 106.5ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434996466_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:07:46.590868"], ["updated_at", "2015-06-22 18:07:46.590868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (3.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (1.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (11.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (1.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 59ms (Views: 44.5ms | ActiveRecord: 11.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.8ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (204.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (341.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.0ms) Completed 200 OK in 379ms (Views: 372.7ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.7ms) Completed 200 OK in 54ms (Views: 46.0ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:07:47.402077"], ["updated_at", "2015-06-22 18:07:47.402077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (14.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (17.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.0ms) Completed 200 OK in 63ms (Views: 53.8ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:07:47.666269"], ["updated_at", "2015-06-22 18:07:47.666269"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:07:47.669989"], ["updated_at", "2015-06-22 18:07:47.669989"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:07:47.673815"], ["updated_at", "2015-06-22 18:07:47.673815"]] SQL (27.8ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:07:47.676274"], ["updated_at", "2015-06-22 18:07:47.676274"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:07:47.706704"], ["updated_at", "2015-06-22 18:07:47.706704"]] SQL (24.0ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:07:47.709693"], ["updated_at", "2015-06-22 18:07:47.709693"]] SQL (0.9ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:07:47.737724"], ["updated_at", "2015-06-22 18:07:47.737724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 234ms (ActiveRecord: 58.3ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (80.1ms) PagesCms::Account Load (3.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (1.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 149ms (Views: 135.6ms | ActiveRecord: 10.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (125.3ms) Completed 500 Internal Server Error in 278ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK PagesCms::Account Load (111.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 1: SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHER... ^ : SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (11.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PG::UndefinedTable: ERROR: relation "pages_cms_accounts" does not exist LINE 1: SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHER... ^ : SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')  (515.3ms) DROP DATABASE IF EXISTS "dummy_test"  (3114.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (112.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (187.7ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (86.6ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (234.8ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (138.8ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (21.4ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (50.8ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (19.4ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.0ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (60.4ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (40.7ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (8.2ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (56.6ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (74.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (331.0ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (78.5ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (908.2ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.0ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (9.6ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.6ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (13.2ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (20.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (8.8ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (284.6ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (7.3ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (69.8ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.9ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (10.0ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (116.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.8ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.8ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.7ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (19.5ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.4ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (3.4ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.6ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.8ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (25.9ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (7.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.5ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (335.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (13.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (79.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:14:35', '2015-06-22 18:14:35', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (19.6ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.5ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:14:36', '2015-06-22 18:14:36') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:14:36', '2015-06-22 18:14:36') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:14:36', '2015-06-22 18:14:36', 298486374)  (1.2ms) COMMIT  (7.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (30.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (65.3ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (30.3ms) Completed 200 OK in 3575ms (Views: 3548.3ms | ActiveRecord: 7.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.2ms) Completed 200 OK in 62ms (Views: 52.9ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:14:40.692078"], ["updated_at", "2015-06-22 18:14:40.692078"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 18:14:40.695426"], ["updated_at", "2015-06-22 18:14:40.695426"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:14:40.698262"], ["updated_at", "2015-06-22 18:14:40.698262"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:14:40.700780"], ["updated_at", "2015-06-22 18:14:40.700780"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:14:40.703810"], ["updated_at", "2015-06-22 18:14:40.703810"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:14:40.706095"], ["updated_at", "2015-06-22 18:14:40.706095"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:14:40.708721"], ["updated_at", "2015-06-22 18:14:40.708721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (101.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (16.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 472ms (ActiveRecord: 125.6ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (176.7ms) Completed 500 Internal Server Error in 273ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (36.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.6ms) Completed 200 OK in 76ms (Views: 66.0ms | ActiveRecord: 6.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:14:41.298583"], ["updated_at", "2015-06-22 18:14:41.298583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434996881_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:14:41.410621"], ["updated_at", "2015-06-22 18:14:41.410621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 38ms (ActiveRecord: 1.9ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (34.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.7ms) Completed 200 OK in 81ms (Views: 71.7ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 92ms (Views: 89.0ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:14:41.707608"], ["updated_at", "2015-06-22 18:14:41.707608"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (96.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (111.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 155ms (Views: 147.9ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.6ms) Completed 200 OK in 89ms (Views: 82.8ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (13.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (17.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) Completed 200 OK in 58ms (Views: 48.9ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (45.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (10.9ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:16:43', '2015-06-22 18:16:43') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (4.7ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:16:43', '2015-06-22 18:16:43') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (23.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:16:43', '2015-06-22 18:16:43', 298486374)  (1.0ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (49.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.5ms) Completed 200 OK in 942ms (Views: 861.0ms | ActiveRecord: 6.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434997005_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:16:45.290510"], ["updated_at", "2015-06-22 18:16:45.290510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 62ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (59.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.6ms) Completed 200 OK in 100ms (Views: 91.9ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:16:45.757714"], ["updated_at", "2015-06-22 18:16:45.757714"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 18:16:45.760569"], ["updated_at", "2015-06-22 18:16:45.760569"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:16:45.763162"], ["updated_at", "2015-06-22 18:16:45.763162"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:16:45.765525"], ["updated_at", "2015-06-22 18:16:45.765525"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:16:45.768202"], ["updated_at", "2015-06-22 18:16:45.768202"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:16:45.770442"], ["updated_at", "2015-06-22 18:16:45.770442"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:16:45.773018"], ["updated_at", "2015-06-22 18:16:45.773018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 359ms (ActiveRecord: 8.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (15.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (341.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (379.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.1ms) Completed 200 OK in 421ms (Views: 411.3ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.2ms) Completed 200 OK in 53ms (Views: 45.3ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (19.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (24.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.9ms) Completed 200 OK in 88ms (Views: 78.7ms | ActiveRecord: 6.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:16:46.492727"], ["updated_at", "2015-06-22 18:16:46.492727"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.9ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:16:46.516590"], ["updated_at", "2015-06-22 18:16:46.516590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (14.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (28.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 65ms (Views: 60.1ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (11.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.8ms) Completed 200 OK in 68ms (Views: 57.6ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.8ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (1.1ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.2ms) INSERT INTO "pages_cms_accounts" ("name", "site_name", "email", "mount_location", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '/', '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:18:13', '2015-06-22 18:18:13') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (7.8ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:18:13', '2015-06-22 18:18:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:18:13', '2015-06-22 18:18:13', 298486374)  (1.2ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (4.2ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (1.0ms) Completed 200 OK in 644ms (Views: 629.1ms | ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:18:14.551443"], ["updated_at", "2015-06-22 18:18:14.551443"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (49.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.6ms) Completed 200 OK in 163ms (Views: 83.2ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 980190962], ["slug", "test-page"], ["created_at", "2015-06-22 18:18:14.850791"], ["updated_at", "2015-06-22 18:18:14.850791"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:18:14.853987"], ["updated_at", "2015-06-22 18:18:14.853987"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:18:14.856458"], ["updated_at", "2015-06-22 18:18:14.856458"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:18:14.859053"], ["updated_at", "2015-06-22 18:18:14.859053"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:18:14.861752"], ["updated_at", "2015-06-22 18:18:14.861752"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:18:14.864412"], ["updated_at", "2015-06-22 18:18:14.864412"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:18:14.867388"], ["updated_at", "2015-06-22 18:18:14.867388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 120ms (ActiveRecord: 8.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (30.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (44.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.8ms) Completed 200 OK in 78ms (Views: 73.3ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (12.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.8ms) Completed 200 OK in 49ms (Views: 40.8ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434997095_test_name.png"], ["name", "test_name"], ["account_id", 980190962], ["created_at", "2015-06-22 18:18:15.184503"], ["updated_at", "2015-06-22 18:18:15.184503"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (106.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (121.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.3ms) Completed 200 OK in 150ms (Views: 143.8ms | ActiveRecord: 4.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.2ms) Completed 200 OK in 35ms (Views: 28.2ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 980190962], ["created_at", "2015-06-22 18:18:15.413396"], ["updated_at", "2015-06-22 18:18:15.413396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (12.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (7.6ms) Completed 200 OK in 46ms (Views: 38.0ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.0ms) Completed 200 OK in 34ms (Views: 28.1ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (26.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.2ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:19:22', '2015-06-22 18:19:22') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:19:22', '2015-06-22 18:19:22') Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (12.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:19:22', '2015-06-22 18:19:22') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.1ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:19:22', '2015-06-22 18:19:22', 298486374)  (1.1ms) COMMIT  (28.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (1.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (72.0ms) Completed 200 OK in 2328ms (Views: 2250.9ms | ActiveRecord: 10.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (2.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 18:19:25.958597"], ["updated_at", "2015-06-22 18:19:25.958597"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 18:19:25.961561"], ["updated_at", "2015-06-22 18:19:25.961561"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:19:25.963898"], ["updated_at", "2015-06-22 18:19:25.963898"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:19:25.966739"], ["updated_at", "2015-06-22 18:19:25.966739"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:19:25.969587"], ["updated_at", "2015-06-22 18:19:25.969587"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:19:25.972006"], ["updated_at", "2015-06-22 18:19:25.972006"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:19:25.974492"], ["updated_at", "2015-06-22 18:19:25.974492"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 352ms (ActiveRecord: 9.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (59.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.3ms) Completed 200 OK in 134ms (Views: 120.5ms | ActiveRecord: 10.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (30.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (45.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.6ms) Completed 200 OK in 88ms (Views: 81.9ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434997166_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 18:19:26.344835"], ["updated_at", "2015-06-22 18:19:26.344835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 16ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (14.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (27.1ms) Completed 200 OK in 77ms (Views: 64.4ms | ActiveRecord: 8.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 30.8ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:19:26.532469"], ["updated_at", "2015-06-22 18:19:26.532469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 18:19:26.565859"], ["updated_at", "2015-06-22 18:19:26.565859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.8ms) Completed 200 OK in 86ms (Views: 77.9ms | ActiveRecord: 6.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (26.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (139.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (156.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.5ms) Completed 200 OK in 221ms (Views: 210.7ms | ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (16.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (18.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.8ms) Completed 200 OK in 56ms (Views: 45.2ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (64.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (8.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:22:07', '2015-06-22 18:22:07') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (17.1ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:22:07', '2015-06-22 18:22:07') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (17.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:22:07', '2015-06-22 18:22:07') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:22:07', '2015-06-22 18:22:07', 298486374)  (1.8ms) COMMIT  (95.7ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (25.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:23:04', '2015-06-22 18:23:04') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:23:04', '2015-06-22 18:23:04') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (12.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:23:04', '2015-06-22 18:23:04') Fixture Delete (0.8ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (33.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:23:04', '2015-06-22 18:23:04', 298486374)  (1.2ms) COMMIT  (4.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (17.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:24:38', '2015-06-22 18:24:38') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:24:38', '2015-06-22 18:24:38') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:24:38', '2015-06-22 18:24:38') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:24:38', '2015-06-22 18:24:38', 298486374)  (9.7ms) COMMIT  (29.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.8ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (62.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:25:26', '2015-06-22 18:25:26') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:25:26', '2015-06-22 18:25:26') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:25:26', '2015-06-22 18:25:26') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:26', '2015-06-22 18:25:26', 298486374)  (22.0ms) COMMIT  (9.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:25:49', '2015-06-22 18:25:49') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.2ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:25:49', '2015-06-22 18:25:49') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:25:49', '2015-06-22 18:25:49') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:25:49', '2015-06-22 18:25:49', 298486374)  (1.1ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:26:06', '2015-06-22 18:26:06') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:26:06', '2015-06-22 18:26:06') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:26:06', '2015-06-22 18:26:06') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:26:06', '2015-06-22 18:26:06', 298486374)  (1.1ms) COMMIT  (2.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (63.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (3.9ms) DELETE FROM "pages_cms_accounts" Fixture Insert (84.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:27:58', '2015-06-22 18:27:58') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59') Fixture Insert (39.8ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.9ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:27:59', '2015-06-22 18:27:59') Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (22.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:27:59', '2015-06-22 18:27:59') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (17.8ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:27:59', '2015-06-22 18:27:59', 298486374)  (39.5ms) COMMIT  (143.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.9ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (16.0ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (83.9ms) Completed 200 OK in 1315ms (Views: 1044.1ms | ActiveRecord: 13.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 18:28:01.775596"], ["updated_at", "2015-06-22 18:28:01.775596"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 18:28:01.778449"], ["updated_at", "2015-06-22 18:28:01.778449"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:28:01.781042"], ["updated_at", "2015-06-22 18:28:01.781042"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:28:01.783488"], ["updated_at", "2015-06-22 18:28:01.783488"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:28:01.786338"], ["updated_at", "2015-06-22 18:28:01.786338"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:28:01.788635"], ["updated_at", "2015-06-22 18:28:01.788635"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:28:01.791617"], ["updated_at", "2015-06-22 18:28:01.791617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 296ms (ActiveRecord: 8.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (103.0ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.5ms) Completed 200 OK in 155ms (Views: 141.1ms | ActiveRecord: 11.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (47.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (71.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.2ms) Completed 200 OK in 117ms (Views: 110.5ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.2ms) Completed 200 OK in 31ms (Views: 28.9ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 18:28:02.255160"], ["updated_at", "2015-06-22 18:28:02.255160"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 14ms (ActiveRecord: 2.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (28.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (158.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (174.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.4ms) Completed 200 OK in 232ms (Views: 220.1ms | ActiveRecord: 8.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.5ms) Completed 200 OK in 69ms (Views: 60.0ms | ActiveRecord: 5.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (1.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (20.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (23.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.4ms) Completed 200 OK in 64ms (Views: 53.1ms | ActiveRecord: 8.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:28:02.657917"], ["updated_at", "2015-06-22 18:28:02.657917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (22.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.3ms) Completed 200 OK in 61ms (Views: 50.0ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434997682_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 18:28:02.831581"], ["updated_at", "2015-06-22 18:28:02.831581"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 11ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:29:22', '2015-06-22 18:29:22') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:29:22', '2015-06-22 18:29:22') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (10.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:29:22', '2015-06-22 18:29:22') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.9ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:22', '2015-06-22 18:29:22', 298486374)  (0.9ms) COMMIT  (2.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 18:29:22.573307"], ["updated_at", "2015-06-22 18:29:22.573307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 95ms (ActiveRecord: 2.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (22.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (367.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (387.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (1.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (41.2ms) Completed 200 OK in 927ms (Views: 914.7ms | ActiveRecord: 10.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.9ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.7ms) Completed 200 OK in 45ms (Views: 36.9ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (11.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.2ms) Completed 200 OK in 53ms (Views: 44.0ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.7ms) Completed 200 OK in 42ms (Views: 34.4ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:29:23.917129"], ["updated_at", "2015-06-22 18:29:23.917129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (20.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 71ms (Views: 59.7ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434997764_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 18:29:24.034989"], ["updated_at", "2015-06-22 18:29:24.034989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (10.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (24.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.2ms) Completed 200 OK in 70ms (Views: 63.8ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (71.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.3ms) Completed 200 OK in 124ms (Views: 109.9ms | ActiveRecord: 10.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 18:29:24.467852"], ["updated_at", "2015-06-22 18:29:24.467852"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:29:24.470992"], ["updated_at", "2015-06-22 18:29:24.470992"]] SQL (1.0ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:29:24.473884"], ["updated_at", "2015-06-22 18:29:24.473884"]] SQL (4.3ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:29:24.476713"], ["updated_at", "2015-06-22 18:29:24.476713"]] SQL (1.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:29:24.483123"], ["updated_at", "2015-06-22 18:29:24.483123"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:29:24.488123"], ["updated_at", "2015-06-22 18:29:24.488123"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:29:24.491335"], ["updated_at", "2015-06-22 18:29:24.491335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 157ms (ActiveRecord: 12.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.7ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.7ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.0ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:29:43', '2015-06-22 18:29:43') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:29:44', '2015-06-22 18:29:44') Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:29:44', '2015-06-22 18:29:44') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:29:44', '2015-06-22 18:29:44', 298486374)  (1.0ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "pages_cms_contacts"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (35.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.2ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:37:27', '2015-06-22 18:37:27') Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (3.9ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (1.7ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:37:27', '2015-06-22 18:37:27') Fixture Delete (1.0ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (13.8ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:37:27', '2015-06-22 18:37:27') Fixture Delete (0.8ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.8ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:37:27', '2015-06-22 18:37:27', 298486374)  (1.4ms) COMMIT  (3.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:37:28.260014"], ["updated_at", "2015-06-22 18:37:28.260014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (16.7ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (1.0ms) Completed 200 OK in 730ms (Views: 707.5ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (46.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (61.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (91.8ms) Completed 200 OK in 186ms (Views: 176.9ms | ActiveRecord: 7.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.7ms) Completed 200 OK in 49ms (Views: 39.3ms | ActiveRecord: 7.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (14.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (163.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (179.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.6ms) Completed 200 OK in 269ms (Views: 257.1ms | ActiveRecord: 7.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (13.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.7ms) Completed 200 OK in 240ms (Views: 231.0ms | ActiveRecord: 7.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.3ms) Completed 200 OK in 92ms (Views: 83.6ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 18:37:30.281649"], ["updated_at", "2015-06-22 18:37:30.281649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434998250_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 18:37:30.371247"], ["updated_at", "2015-06-22 18:37:30.371247"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (33.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.3ms) Completed 200 OK in 99ms (Views: 88.3ms | ActiveRecord: 7.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.7ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 18:37:30.671636"], ["updated_at", "2015-06-22 18:37:30.671636"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:37:30.674370"], ["updated_at", "2015-06-22 18:37:30.674370"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:37:30.676811"], ["updated_at", "2015-06-22 18:37:30.676811"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:37:30.679508"], ["updated_at", "2015-06-22 18:37:30.679508"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:37:30.682534"], ["updated_at", "2015-06-22 18:37:30.682534"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:37:30.685666"], ["updated_at", "2015-06-22 18:37:30.685666"]] SQL (1.1ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:37:30.688768"], ["updated_at", "2015-06-22 18:37:30.688768"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 160ms (ActiveRecord: 8.5ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (49.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (2.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.7ms) Completed 200 OK in 116ms (Views: 101.8ms | ActiveRecord: 12.4ms)  (0.2ms) ROLLBACK PagesCms::Account Load (2.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (35.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (30.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 18:47:08', '2015-06-22 18:47:08') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 18:47:08', '2015-06-22 18:47:08') Fixture Delete (1.0ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (26.0ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 18:47:08', '2015-06-22 18:47:08') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 18:47:08', '2015-06-22 18:47:08', 298486374)  (10.6ms) COMMIT  (5.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.6ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:47:08.749611"], ["updated_at", "2015-06-22 18:47:08.749611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 18:47:09.049702"], ["updated_at", "2015-06-22 18:47:09.049702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 65ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (287.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/edit.html.haml within layouts/pages_cms/application (307.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (39.5ms) Completed 200 OK in 746ms (Views: 732.8ms | ActiveRecord: 11.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.2ms) Completed 200 OK in 50ms (Views: 41.5ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (10.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/new.html.haml within layouts/pages_cms/application (13.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.8ms) Completed 200 OK in 51ms (Views: 42.6ms | ActiveRecord: 6.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (81.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.3ms) Completed 200 OK in 122ms (Views: 111.7ms | ActiveRecord: 8.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (18.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (24.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (8.9ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (8.6ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (270.4ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (10.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (11.5ms) PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (1.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (9.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (67.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (488.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.0ms) Completed 200 OK in 556ms (Views: 510.1ms | ActiveRecord: 25.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 18:47:10.669969"], ["updated_at", "2015-06-22 18:47:10.669969"]] SQL (1.1ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 18:47:10.672712"], ["updated_at", "2015-06-22 18:47:10.672712"]] SQL (0.8ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:47:10.676255"], ["updated_at", "2015-06-22 18:47:10.676255"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:47:10.679446"], ["updated_at", "2015-06-22 18:47:10.679446"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:47:10.682855"], ["updated_at", "2015-06-22 18:47:10.682855"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:47:10.685695"], ["updated_at", "2015-06-22 18:47:10.685695"]] SQL (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:47:10.688813"], ["updated_at", "2015-06-22 18:47:10.688813"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 107ms (ActiveRecord: 7.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.2ms) Completed 200 OK in 54ms (Views: 43.9ms | ActiveRecord: 7.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (13.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (37.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.0ms) Completed 200 OK in 80ms (Views: 73.9ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1434998831_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 18:47:11.081194"], ["updated_at", "2015-06-22 18:47:11.081194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 10ms (ActiveRecord: 1.4ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (18.2ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 67ms (Views: 59.6ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (63.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 19:01:00', '2015-06-22 19:01:00') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 19:01:00', '2015-06-22 19:01:00') Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (9.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (3.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00') Fixture Insert (1.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 19:01:00', '2015-06-22 19:01:00') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 19:01:00', '2015-06-22 19:01:00', 298486374)  (2.1ms) COMMIT  (10.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (1.2ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (15.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (123.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (29.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (13.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (9.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (399.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1543.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (37.6ms) Completed 200 OK in 5271ms (Views: 5126.6ms | ActiveRecord: 26.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 19:01:06.092908"], ["updated_at", "2015-06-22 19:01:06.092908"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 19:01:06.097082"], ["updated_at", "2015-06-22 19:01:06.097082"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 19:01:06.099138"], ["updated_at", "2015-06-22 19:01:06.099138"]] SQL (1.6ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 19:01:06.101771"], ["updated_at", "2015-06-22 19:01:06.101771"]] SQL (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 19:01:06.105662"], ["updated_at", "2015-06-22 19:01:06.105662"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 19:01:06.108395"], ["updated_at", "2015-06-22 19:01:06.108395"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 19:01:06.111329"], ["updated_at", "2015-06-22 19:01:06.111329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 401ms (ActiveRecord: 9.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (1.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (23.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.0ms) Completed 200 OK in 74ms (Views: 62.0ms | ActiveRecord: 9.3ms)  (0.2ms) ROLLBACK  (191.3ms) DROP DATABASE IF EXISTS "dummy_test"  (1559.2ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (166.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.5ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (22.2ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (14.6ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.7ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (11.4ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (11.0ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (12.8ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.2ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (9.7ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (6.8ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (46.0ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (76.8ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (8.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (14.1ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.2ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (7.0ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (134.9ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (8.5ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (28.1ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.8ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (6.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.8ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (11.3ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.1ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (14.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.4ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.8ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.8ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.8ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (4.6ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.1ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.6ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (27.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (17.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:16:54', '2015-06-22 21:16:54') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:16:54', '2015-06-22 21:16:54') Fixture Delete (0.8ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.7ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:16:54', '2015-06-22 21:16:54') Fixture Delete (0.8ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.7ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:16:54', '2015-06-22 21:16:54', 298486374)  (1.3ms) COMMIT  (9.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.3ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (6.1ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (1.0ms) Completed 200 OK in 2652ms (Views: 2644.3ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (36.4ms) Completed 200 OK in 143ms (Views: 72.3ms | ActiveRecord: 7.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (55.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.7ms) Completed 200 OK in 96ms (Views: 89.5ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:16:58.213740"], ["updated_at", "2015-06-22 21:16:58.213740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (22.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (46.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (156.8ms) Completed 500 Internal Server Error in 197ms (ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:16:58.705469"], ["updated_at", "2015-06-22 21:16:58.705469"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:16:58.708212"], ["updated_at", "2015-06-22 21:16:58.708212"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:16:58.710563"], ["updated_at", "2015-06-22 21:16:58.710563"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:16:58.712695"], ["updated_at", "2015-06-22 21:16:58.712695"]] SQL (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:16:58.716003"], ["updated_at", "2015-06-22 21:16:58.716003"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:16:58.718404"], ["updated_at", "2015-06-22 21:16:58.718404"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:16:58.721127"], ["updated_at", "2015-06-22 21:16:58.721127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (13.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (15.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 280ms (ActiveRecord: 36.0ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (47.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.9ms) Completed 200 OK in 88ms (Views: 77.6ms | ActiveRecord: 8.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.6ms) Completed 200 OK in 41ms (Views: 32.5ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:16:59.072258"], ["updated_at", "2015-06-22 21:16:59.072258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435007819_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:16:59.158815"], ["updated_at", "2015-06-22 21:16:59.158815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 10ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.4ms) Completed 200 OK in 68ms (Views: 60.2ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:16:59.242127"], ["updated_at", "2015-06-22 21:16:59.242127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (34.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:18:25', '2015-06-22 21:18:25') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (8.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:18:25', '2015-06-22 21:18:25') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:18:25', '2015-06-22 21:18:25') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (7.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:18:25', '2015-06-22 21:18:25', 298486374)  (1.2ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (33.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (68.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (52.0ms) Completed 200 OK in 723ms (Views: 697.3ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:18:27.154776"], ["updated_at", "2015-06-22 21:18:27.154776"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:18:27.157689"], ["updated_at", "2015-06-22 21:18:27.157689"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:18:27.159837"], ["updated_at", "2015-06-22 21:18:27.159837"]] SQL (0.8ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:18:27.162030"], ["updated_at", "2015-06-22 21:18:27.162030"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:18:27.164497"], ["updated_at", "2015-06-22 21:18:27.164497"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:18:27.166672"], ["updated_at", "2015-06-22 21:18:27.166672"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:18:27.169127"], ["updated_at", "2015-06-22 21:18:27.169127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 231ms (ActiveRecord: 7.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (100.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 148ms (Views: 136.5ms | ActiveRecord: 9.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (29.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (186.2ms) Completed 500 Internal Server Error in 202ms (ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:18:27.681186"], ["updated_at", "2015-06-22 21:18:27.681186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 21ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.2ms) Completed 200 OK in 51ms (Views: 41.4ms | ActiveRecord: 6.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.2ms) Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (10.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.7ms) Completed 200 OK in 63ms (Views: 54.1ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (27.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.8ms) Completed 200 OK in 73ms (Views: 61.9ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435007908_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:18:28.020668"], ["updated_at", "2015-06-22 21:18:28.020668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 34ms (ActiveRecord: 2.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:18:28.056198"], ["updated_at", "2015-06-22 21:18:28.056198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:18:28.063162"], ["updated_at", "2015-06-22 21:18:28.063162"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.7ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:19:26', '2015-06-22 21:19:26') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.1ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:19:26', '2015-06-22 21:19:26') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:19:26', '2015-06-22 21:19:26') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:19:26', '2015-06-22 21:19:26', 298486374)  (1.2ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:19:26.676475"], ["updated_at", "2015-06-22 21:19:26.676475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435007966_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:19:26.964031"], ["updated_at", "2015-06-22 21:19:26.964031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 76ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (33.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (41.4ms) Completed 200 OK in 639ms (Views: 627.7ms | ActiveRecord: 8.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (29.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (52.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.1ms) Completed 200 OK in 91ms (Views: 85.3ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.0ms) Completed 200 OK in 51ms (Views: 43.2ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:19:27.819728"], ["updated_at", "2015-06-22 21:19:27.819728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.5ms) Completed 200 OK in 62ms (Views: 28.4ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:19:27.994454"], ["updated_at", "2015-06-22 21:19:27.994454"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:19:28.170506"], ["updated_at", "2015-06-22 21:19:28.170506"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 21:19:28.173104"], ["updated_at", "2015-06-22 21:19:28.173104"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:19:28.175937"], ["updated_at", "2015-06-22 21:19:28.175937"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:19:28.178707"], ["updated_at", "2015-06-22 21:19:28.178707"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:19:28.181784"], ["updated_at", "2015-06-22 21:19:28.181784"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:19:28.184351"], ["updated_at", "2015-06-22 21:19:28.184351"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:19:28.187339"], ["updated_at", "2015-06-22 21:19:28.187339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 146ms (ActiveRecord: 7.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (57.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.8ms) Completed 200 OK in 113ms (Views: 102.4ms | ActiveRecord: 8.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.5ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (30.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.0ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (15.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (177.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (37.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.3ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (458.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.6ms) Completed 200 OK in 516ms (Views: 490.7ms | ActiveRecord: 19.3ms)  (0.3ms) ROLLBACK  (113.6ms) DROP DATABASE IF EXISTS "dummy_test"  (2133.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.9ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.6ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.8ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.9ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (8.6ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (7.2ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (3.1ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (6.6ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (19.8ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (7.0ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.2ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (22.2ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (16.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (9.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (7.4ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (1.9ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.9ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.1ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.5ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (4.2ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.7ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.3ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (4.8ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.8ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.0ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.9ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.2ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.9ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.7ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.2ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (4.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (22.2ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.2ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.7ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:20:32', '2015-06-22 21:20:32') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:20:32', '2015-06-22 21:20:32') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:20:32', '2015-06-22 21:20:32') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:20:32', '2015-06-22 21:20:32', 298486374)  (13.2ms) COMMIT  (10.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:20:32.744501"], ["updated_at", "2015-06-22 21:20:32.744501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 95ms (ActiveRecord: 2.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (40.5ms) Completed 200 OK in 841ms (Views: 831.4ms | ActiveRecord: 7.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:20:33.601903"], ["updated_at", "2015-06-22 21:20:33.601903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (56.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.4ms) Completed 200 OK in 92ms (Views: 80.8ms | ActiveRecord: 9.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:20:34.012361"], ["updated_at", "2015-06-22 21:20:34.012361"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:20:34.014914"], ["updated_at", "2015-06-22 21:20:34.014914"]] SQL (0.5ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:20:34.016985"], ["updated_at", "2015-06-22 21:20:34.016985"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:20:34.019102"], ["updated_at", "2015-06-22 21:20:34.019102"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:20:34.021907"], ["updated_at", "2015-06-22 21:20:34.021907"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:20:34.024052"], ["updated_at", "2015-06-22 21:20:34.024052"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:20:34.026769"], ["updated_at", "2015-06-22 21:20:34.026769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 266ms (ActiveRecord: 8.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.2ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (25.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (44.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (21.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (9.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (204.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (43.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (468.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.1ms) Completed 200 OK in 529ms (Views: 506.6ms | ActiveRecord: 18.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.8ms) Completed 200 OK in 50ms (Views: 41.7ms | ActiveRecord: 5.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (10.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (33.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.6ms) Completed 200 OK in 74ms (Views: 68.0ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:20:34.857067"], ["updated_at", "2015-06-22 21:20:34.857067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.5ms) Completed 200 OK in 66ms (Views: 56.6ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435008035_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:20:35.009238"], ["updated_at", "2015-06-22 21:20:35.009238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) ROLLBACK  (365.1ms) DROP DATABASE IF EXISTS "dummy_test"  (1317.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.2ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.2ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.5ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.8ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (7.0ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (8.0ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (6.2ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.2ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (37.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (61.8ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (6.4ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.2ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.1ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.5ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.3ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (29.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.1ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.1ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.9ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.6ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.1ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.1ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.9ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.5ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.5ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.8ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.1ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.9ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.5ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.0ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.1ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.8ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:22:09', '2015-06-22 21:22:09') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:22:09', '2015-06-22 21:22:09') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:22:09', '2015-06-22 21:22:09') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:22:09', '2015-06-22 21:22:09', 298486374)  (1.1ms) COMMIT  (8.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (41.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (54.4ms) Completed 200 OK in 1198ms (Views: 673.7ms | ActiveRecord: 9.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435008131_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:22:11.065097"], ["updated_at", "2015-06-22 21:22:11.065097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 118ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (10.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.9ms) Completed 200 OK in 66ms (Views: 56.0ms | ActiveRecord: 6.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:22:11.350425"], ["updated_at", "2015-06-22 21:22:11.350425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:22:11.566286"], ["updated_at", "2015-06-22 21:22:11.566286"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 21:22:11.568926"], ["updated_at", "2015-06-22 21:22:11.568926"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:22:11.571160"], ["updated_at", "2015-06-22 21:22:11.571160"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:22:11.573612"], ["updated_at", "2015-06-22 21:22:11.573612"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:22:11.576755"], ["updated_at", "2015-06-22 21:22:11.576755"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:22:11.579088"], ["updated_at", "2015-06-22 21:22:11.579088"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:22:11.581609"], ["updated_at", "2015-06-22 21:22:11.581609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 142ms (ActiveRecord: 8.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (45.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.0ms) Completed 200 OK in 98ms (Views: 86.0ms | ActiveRecord: 9.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (19.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (38.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (8.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (215.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (44.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (500.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.5ms) Completed 200 OK in 548ms (Views: 525.3ms | ActiveRecord: 18.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:22:12.285385"], ["updated_at", "2015-06-22 21:22:12.285385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (9.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (32.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.3ms) Completed 200 OK in 72ms (Views: 66.1ms | ActiveRecord: 5.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:22:12.439124"], ["updated_at", "2015-06-22 21:22:12.439124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 41ms (Views: 33.8ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:23:05', '2015-06-22 21:23:05') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', 'MyString', NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.0ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:23:05', '2015-06-22 21:23:05') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.0ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:23:05', '2015-06-22 21:23:05') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:23:05', '2015-06-22 21:23:05', 298486374)  (1.2ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:23:05.766526"], ["updated_at", "2015-06-22 21:23:05.766526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 95ms (ActiveRecord: 2.3ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (50.9ms) Completed 200 OK in 619ms (Views: 609.4ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:23:06.493569"], ["updated_at", "2015-06-22 21:23:06.493569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.1ms) Completed 200 OK in 55ms (Views: 44.0ms | ActiveRecord: 7.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.9ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (45.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.3ms) Completed 200 OK in 97ms (Views: 83.4ms | ActiveRecord: 10.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.9ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.7ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (45.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (65.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (255.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (36.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (1.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (559.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.0ms) Completed 200 OK in 648ms (Views: 588.9ms | ActiveRecord: 25.1ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:23:07.556116"], ["updated_at", "2015-06-22 21:23:07.556116"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:23:07.559277"], ["updated_at", "2015-06-22 21:23:07.559277"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:23:07.561953"], ["updated_at", "2015-06-22 21:23:07.561953"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:23:07.564484"], ["updated_at", "2015-06-22 21:23:07.564484"]] SQL (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:23:07.567706"], ["updated_at", "2015-06-22 21:23:07.567706"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:23:07.573063"], ["updated_at", "2015-06-22 21:23:07.573063"]] SQL (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:23:07.576090"], ["updated_at", "2015-06-22 21:23:07.576090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 254ms (ActiveRecord: 7.8ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435008187_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:23:07.719183"], ["updated_at", "2015-06-22 21:23:07.719183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (19.2ms) Completed 200 OK in 84ms (Views: 75.6ms | ActiveRecord: 6.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (8.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (20.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 62ms (Views: 55.6ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:23:07.976934"], ["updated_at", "2015-06-22 21:23:07.976934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (154.8ms) DROP DATABASE IF EXISTS "dummy_test"  (1132.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.4ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (9.1ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content_wysiwyg" text, "content_md" text, "content_md_rendered" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.3ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.6ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.1ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (9.4ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (3.6ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (6.5ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (6.5ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (7.0ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.3ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.3ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.0ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.9ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.7ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.8ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.6ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.6ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (4.1ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.4ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.1ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (3.0ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.6ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (11.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.6ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:44', '2015-06-22 21:43:44') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:44', '2015-06-22 21:43:44') Fixture Insert (6.4ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:44', '2015-06-22 21:43:44', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:44', '2015-06-22 21:43:44', 298486374)  (0.1ms) ROLLBACK  (4.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (4.7ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (4.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.7ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374) PG::UndefinedColumn: ERROR: column "content_rendered" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("content_md", "content_ren... ^ : INSERT INTO "pages_cms_articles" ("content_md", "content_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:43:45', '2015-06-22 21:43:45', 298486374)  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (39.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.2ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:44:51', '2015-06-22 21:44:51') Fixture Delete (1.2ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (16.8ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.8ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_images" Fixture Insert (1.1ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:44:51', '2015-06-22 21:44:51') Fixture Delete (0.7ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:44:51', '2015-06-22 21:44:51') Fixture Delete (1.0ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (2.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:44:51', '2015-06-22 21:44:51', 298486374)  (1.6ms) COMMIT  (7.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (135.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (170.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (50.0ms) Completed 200 OK in 889ms (Views: 871.2ms | ActiveRecord: 7.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (27.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (18.2ms) Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.1ms) Completed 200 OK in 48ms (Views: 39.3ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435009493_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:44:53.102587"], ["updated_at", "2015-06-22 21:44:53.102587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (28.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.1ms) Completed 200 OK in 69ms (Views: 60.8ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:44:53.203570"], ["updated_at", "2015-06-22 21:44:53.203570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:44:53.396486"], ["updated_at", "2015-06-22 21:44:53.396486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.2ms) Completed 200 OK in 38ms (Views: 29.1ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.5ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (26.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (46.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (24.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (10.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (281.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (45.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (581.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (32.7ms) Completed 200 OK in 676ms (Views: 628.2ms | ActiveRecord: 20.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:44:54.198648"], ["updated_at", "2015-06-22 21:44:54.198648"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 21:44:54.201018"], ["updated_at", "2015-06-22 21:44:54.201018"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:44:54.203096"], ["updated_at", "2015-06-22 21:44:54.203096"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:44:54.205349"], ["updated_at", "2015-06-22 21:44:54.205349"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:44:54.208210"], ["updated_at", "2015-06-22 21:44:54.208210"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:44:54.210375"], ["updated_at", "2015-06-22 21:44:54.210375"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:44:54.212852"], ["updated_at", "2015-06-22 21:44:54.212852"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 77ms (ActiveRecord: 6.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (21.2ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.5ms) Completed 200 OK in 62ms (Views: 51.8ms | ActiveRecord: 8.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (62.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:48:07', '2015-06-22 21:48:07') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:48:07', '2015-06-22 21:48:07') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (6.6ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:48:07', '2015-06-22 21:48:07') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.9ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:07', '2015-06-22 21:48:07', 298486374)  (1.0ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:48:07.419572"], ["updated_at", "2015-06-22 21:48:07.419572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (67.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (71.6ms) Completed 200 OK in 755ms (Views: 727.2ms | ActiveRecord: 7.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (30.1ms) Completed 500 Internal Server Error in 55ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:48:08.936304"], ["updated_at", "2015-06-22 21:48:08.936304"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:48:08.939060"], ["updated_at", "2015-06-22 21:48:08.939060"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:08.941155"], ["updated_at", "2015-06-22 21:48:08.941155"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:08.943478"], ["updated_at", "2015-06-22 21:48:08.943478"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:08.946357"], ["updated_at", "2015-06-22 21:48:08.946357"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:08.948678"], ["updated_at", "2015-06-22 21:48:08.948678"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:48:08.951051"], ["updated_at", "2015-06-22 21:48:08.951051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 240ms (ActiveRecord: 8.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (36.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (22.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (6.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (15.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (10.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (203.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (1.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (49.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (492.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.3ms) Completed 200 OK in 609ms (Views: 586.2ms | ActiveRecord: 19.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (1.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (34.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.4ms) Completed 200 OK in 69ms (Views: 56.1ms | ActiveRecord: 10.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.0ms) Completed 200 OK in 58ms (Views: 50.3ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.6ms) Completed 200 OK in 67ms (Views: 57.7ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435009689_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:48:09.914930"], ["updated_at", "2015-06-22 21:48:09.914930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 8ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:48:09.933741"], ["updated_at", "2015-06-22 21:48:09.933741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 36ms (Views: 28.3ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:48:10.015083"], ["updated_at", "2015-06-22 21:48:10.015083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (51.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:48:54', '2015-06-22 21:48:54') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:48:54', '2015-06-22 21:48:54') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:48:54', '2015-06-22 21:48:54') Fixture Delete (1.1ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374)  (1.3ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (15.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (69.2ms) Completed 200 OK in 761ms (Views: 669.1ms | ActiveRecord: 8.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.0ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (53.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.3ms) Completed 200 OK in 95ms (Views: 88.9ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:48:55.696390"], ["updated_at", "2015-06-22 21:48:55.696390"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:48:55.699395"], ["updated_at", "2015-06-22 21:48:55.699395"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:55.701626"], ["updated_at", "2015-06-22 21:48:55.701626"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:55.703998"], ["updated_at", "2015-06-22 21:48:55.703998"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:55.706787"], ["updated_at", "2015-06-22 21:48:55.706787"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:55.709012"], ["updated_at", "2015-06-22 21:48:55.709012"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:48:55.711408"], ["updated_at", "2015-06-22 21:48:55.711408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 309ms (ActiveRecord: 8.0ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.5ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (31.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (50.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (9.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (11.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (205.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (1.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (10.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (47.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (493.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 547ms (Views: 525.4ms | ActiveRecord: 18.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.3ms) Completed 200 OK in 63ms (Views: 52.9ms | ActiveRecord: 8.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:48:56.460990"], ["updated_at", "2015-06-22 21:48:56.460990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) Completed 200 OK in 33ms (Views: 26.0ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:48:56.508255"], ["updated_at", "2015-06-22 21:48:56.508255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:48:56.523675"], ["updated_at", "2015-06-22 21:48:56.523675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435009736_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:48:56.608482"], ["updated_at", "2015-06-22 21:48:56.608482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 11ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.8ms) Completed 200 OK in 65ms (Views: 57.3ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 35ms (Views: 33.6ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:50:43', '2015-06-22 21:50:43') Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.0ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:50:43', '2015-06-22 21:50:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:50:43', '2015-06-22 21:50:43', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:50:43', '2015-06-22 21:50:43', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:50:43', '2015-06-22 21:50:43') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (12.7ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:50:44', '2015-06-22 21:50:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:50:44', '2015-06-22 21:50:44', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:50:44', '2015-06-22 21:50:44') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:50:44', '2015-06-22 21:50:44') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.1ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:50:44', '2015-06-22 21:50:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:50:44', '2015-06-22 21:50:44', 298486374)  (1.1ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:50:44.125921"], ["updated_at", "2015-06-22 21:50:44.125921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (49.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (84.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (49.6ms) Completed 200 OK in 699ms (Views: 683.2ms | ActiveRecord: 7.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (35.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (221.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (30.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (58.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.6ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (581.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.9ms) Completed 200 OK in 638ms (Views: 600.4ms | ActiveRecord: 21.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:50:46.003884"], ["updated_at", "2015-06-22 21:50:46.003884"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:50:46.006767"], ["updated_at", "2015-06-22 21:50:46.006767"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:50:46.009358"], ["updated_at", "2015-06-22 21:50:46.009358"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:50:46.011915"], ["updated_at", "2015-06-22 21:50:46.011915"]] SQL (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:50:46.014900"], ["updated_at", "2015-06-22 21:50:46.014900"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:50:46.017218"], ["updated_at", "2015-06-22 21:50:46.017218"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:50:46.019858"], ["updated_at", "2015-06-22 21:50:46.019858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 228ms (ActiveRecord: 7.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (25.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.2ms) Completed 200 OK in 71ms (Views: 59.6ms | ActiveRecord: 8.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:50:46.149126"], ["updated_at", "2015-06-22 21:50:46.149126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435009846_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:50:46.253404"], ["updated_at", "2015-06-22 21:50:46.253404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 14ms (ActiveRecord: 1.9ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.9ms) Completed 200 OK in 86ms (Views: 76.1ms | ActiveRecord: 6.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 58ms (Views: 50.4ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.8ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:50:46.486956"], ["updated_at", "2015-06-22 21:50:46.486956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 27ms (ActiveRecord: 1.7ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.8ms) Completed 200 OK in 36ms (Views: 29.4ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 27.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:51:13', '2015-06-22 21:51:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:51:13', '2015-06-22 21:51:13') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:51:13', '2015-06-22 21:51:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374)  (1.3ms) COMMIT  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (30.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (71.7ms) Completed 200 OK in 829ms (Views: 686.0ms | ActiveRecord: 8.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435009875_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:51:15.189316"], ["updated_at", "2015-06-22 21:51:15.189316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 224ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (1.5ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (56.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.6ms) Completed 200 OK in 102ms (Views: 90.6ms | ActiveRecord: 9.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:51:15.805981"], ["updated_at", "2015-06-22 21:51:15.805981"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:51:15.808557"], ["updated_at", "2015-06-22 21:51:15.808557"]] SQL (1.1ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:51:15.810753"], ["updated_at", "2015-06-22 21:51:15.810753"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:51:15.814587"], ["updated_at", "2015-06-22 21:51:15.814587"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:51:15.817911"], ["updated_at", "2015-06-22 21:51:15.817911"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:51:15.820197"], ["updated_at", "2015-06-22 21:51:15.820197"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:51:15.822627"], ["updated_at", "2015-06-22 21:51:15.822627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 283ms (ActiveRecord: 7.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (48.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (20.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.9ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (14.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (208.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (45.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (476.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.8ms) Completed 200 OK in 536ms (Views: 514.1ms | ActiveRecord: 19.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (13.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.7ms) Completed 200 OK in 57ms (Views: 49.3ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:51:16.543097"], ["updated_at", "2015-06-22 21:51:16.543097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 28.9ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:51:16.608916"], ["updated_at", "2015-06-22 21:51:16.608916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (1.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:51:16.643764"], ["updated_at", "2015-06-22 21:51:16.643764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.0ms) Completed 200 OK in 34ms (Views: 26.8ms | ActiveRecord: 5.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (20.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.6ms) Completed 200 OK in 60ms (Views: 54.5ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (16.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:04', '2015-06-22 21:52:04') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:52:04', '2015-06-22 21:52:04') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:52:04', '2015-06-22 21:52:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (9.0ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:52:04', '2015-06-22 21:52:04', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:52:04', '2015-06-22 21:52:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (10.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:52:04', '2015-06-22 21:52:04', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:52:04', '2015-06-22 21:52:04', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:52:04', '2015-06-22 21:52:04', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:52:04', '2015-06-22 21:52:04', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:52:04', '2015-06-22 21:52:04', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_images" Fixture Insert (0.7ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:52:05', '2015-06-22 21:52:05') Fixture Delete (0.8ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (14.5ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:52:05', '2015-06-22 21:52:05', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:52:05', '2015-06-22 21:52:05', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:52:05', '2015-06-22 21:52:05') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:52:05', '2015-06-22 21:52:05') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.0ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:52:05', '2015-06-22 21:52:05', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:52:05', '2015-06-22 21:52:05', 298486374)  (2.3ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:52:05.150923"], ["updated_at", "2015-06-22 21:52:05.150923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (70.4ms) Completed 200 OK in 833ms (Views: 697.1ms | ActiveRecord: 8.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.8ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:52:06.558757"], ["updated_at", "2015-06-22 21:52:06.558757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.9ms) Completed 200 OK in 36ms (Views: 27.8ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (45.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 89ms (Views: 79.4ms | ActiveRecord: 8.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:52:06.992692"], ["updated_at", "2015-06-22 21:52:06.992692"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:52:06.995457"], ["updated_at", "2015-06-22 21:52:06.995457"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:52:06.997519"], ["updated_at", "2015-06-22 21:52:06.997519"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:52:06.999979"], ["updated_at", "2015-06-22 21:52:06.999979"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:52:07.002539"], ["updated_at", "2015-06-22 21:52:07.002539"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:52:07.004741"], ["updated_at", "2015-06-22 21:52:07.004741"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:52:07.007212"], ["updated_at", "2015-06-22 21:52:07.007212"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 290ms (ActiveRecord: 8.0ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (19.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (49.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.8ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (21.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (6.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (213.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (1.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (45.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (8.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (492.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.2ms) Completed 200 OK in 553ms (Views: 530.4ms | ActiveRecord: 19.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (10.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (32.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.3ms) Completed 200 OK in 72ms (Views: 66.5ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435009927_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:52:07.757485"], ["updated_at", "2015-06-22 21:52:07.757485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 66ms (Views: 58.1ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:52:07.844157"], ["updated_at", "2015-06-22 21:52:07.844157"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (41.0ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.0ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:49', '2015-06-22 21:52:49') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (16.1ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.2ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (11.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.8ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (5.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (7.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (211.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (24.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (6.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (14.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (17.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.2ms) ROLLBACK  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (5.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (5.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (4.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (17.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (4.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (4.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.3ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (1.0ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.7ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (10.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (11.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:50', '2015-06-22 21:52:50') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:50', '2015-06-22 21:52:50')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:51', '2015-06-22 21:52:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51')  (0.1ms) ROLLBACK  (12.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:51', '2015-06-22 21:52:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51')  (0.7ms) ROLLBACK  (6.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:51', '2015-06-22 21:52:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51')  (0.1ms) ROLLBACK  (3.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (9.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:51', '2015-06-22 21:52:51') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:52:51', '2015-06-22 21:52:51') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51') PG::InvalidTextRepresentation: ERROR: malformed array literal: "tag" LINE 1: ... "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'My... ^ DETAIL: Array value must start with "{" or dimension information. : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'tag', 'MyString', NULL, '2015-06-22 21:52:51', '2015-06-22 21:52:51')  (0.1ms) ROLLBACK  (7.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:54:19', '2015-06-22 21:54:19') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "tags", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', '{tag,tag}', 'MyString', NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:54:19', '2015-06-22 21:54:19') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:54:19', '2015-06-22 21:54:19') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374)  (1.2ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (22.2ms) Completed 500 Internal Server Error in 72ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010059_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:54:19.710719"], ["updated_at", "2015-06-22 21:54:19.710719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 126ms (ActiveRecord: 1.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (38.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (186.3ms) Completed 200 OK in 3004ms (Views: 2992.6ms | ActiveRecord: 8.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:54:23.111256"], ["updated_at", "2015-06-22 21:54:23.111256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (42.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (83.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (16.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (21.0ms) PagesCms::Image Load (2.1ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (3.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (14.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (382.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.6ms) PagesCms::Image Load (0.7ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (12.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (2.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (16.2ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (10.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (77.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (14.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (12.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1683.2ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (1.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (31.0ms) Completed 200 OK in 1815ms (Views: 1745.0ms | ActiveRecord: 33.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (84.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (21.2ms) Completed 200 OK in 157ms (Views: 139.1ms | ActiveRecord: 13.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:54:25.713243"], ["updated_at", "2015-06-22 21:54:25.713243"]] SQL (0.9ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 21:54:25.716521"], ["updated_at", "2015-06-22 21:54:25.716521"]] SQL (0.9ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:54:25.719188"], ["updated_at", "2015-06-22 21:54:25.719188"]] SQL (1.2ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:54:25.723649"], ["updated_at", "2015-06-22 21:54:25.723649"]] SQL (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:54:25.727772"], ["updated_at", "2015-06-22 21:54:25.727772"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:54:25.732182"], ["updated_at", "2015-06-22 21:54:25.732182"]] SQL (0.9ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:54:25.735313"], ["updated_at", "2015-06-22 21:54:25.735313"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 138ms (ActiveRecord: 9.2ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:54:25.853378"], ["updated_at", "2015-06-22 21:54:25.853378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:54:25.960373"], ["updated_at", "2015-06-22 21:54:25.960373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (8.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (27.7ms) Completed 200 OK in 80ms (Views: 60.6ms | ActiveRecord: 16.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 47ms (Views: 39.3ms | ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (10.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (31.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.4ms) Completed 200 OK in 83ms (Views: 75.9ms | ActiveRecord: 5.9ms)  (1.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (28.0ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:56:02', '2015-06-22 21:56:02') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:56:02', '2015-06-22 21:56:02') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (7.9ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:56:02', '2015-06-22 21:56:02') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.1ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:56:02', '2015-06-22 21:56:02', 298486374)  (1.0ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010163_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:56:03.364628"], ["updated_at", "2015-06-22 21:56:03.364628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 174ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (49.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (73.1ms) Completed 200 OK in 1092ms (Views: 1082.3ms | ActiveRecord: 7.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:56:04.633225"], ["updated_at", "2015-06-22 21:56:04.633225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:56:04.653235"], ["updated_at", "2015-06-22 21:56:04.653235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:56:04.699888"], ["updated_at", "2015-06-22 21:56:04.699888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 20ms (ActiveRecord: 2.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.3ms) Completed 200 OK in 36ms (Views: 27.8ms | ActiveRecord: 6.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (6.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.2ms) Completed 200 OK in 51ms (Views: 42.7ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 27.4ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:56:05.031266"], ["updated_at", "2015-06-22 21:56:05.031266"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 21:56:05.033707"], ["updated_at", "2015-06-22 21:56:05.033707"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:56:05.035847"], ["updated_at", "2015-06-22 21:56:05.035847"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:56:05.038178"], ["updated_at", "2015-06-22 21:56:05.038178"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:56:05.040938"], ["updated_at", "2015-06-22 21:56:05.040938"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:56:05.043283"], ["updated_at", "2015-06-22 21:56:05.043283"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:56:05.045836"], ["updated_at", "2015-06-22 21:56:05.045836"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 111ms (ActiveRecord: 7.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (20.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (39.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (184.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (43.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (525.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.8ms) Completed 200 OK in 588ms (Views: 565.7ms | ActiveRecord: 18.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.3ms) Completed 200 OK in 67ms (Views: 57.8ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (47.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 86ms (Views: 80.9ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:57:05', '2015-06-22 21:57:05') Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:57:05', '2015-06-22 21:57:05') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (13.5ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:57:05', '2015-06-22 21:57:05') Fixture Delete (1.0ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.0ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:05', '2015-06-22 21:57:05', 298486374)  (1.4ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:57:05.818540"], ["updated_at", "2015-06-22 21:57:05.818540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (53.9ms) Completed 200 OK in 691ms (Views: 616.0ms | ActiveRecord: 8.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (31.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (54.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) Completed 200 OK in 94ms (Views: 87.9ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:57:06.903751"], ["updated_at", "2015-06-22 21:57:06.903751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 20ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.2ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.2ms) Completed 200 OK in 35ms (Views: 27.3ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (46.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (65.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (8.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (243.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (32.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (16.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (537.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.0ms) Completed 200 OK in 602ms (Views: 565.6ms | ActiveRecord: 21.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (32.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.4ms) Completed 200 OK in 87ms (Views: 75.1ms | ActiveRecord: 9.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:57:07.916816"], ["updated_at", "2015-06-22 21:57:07.916816"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:57:07.919694"], ["updated_at", "2015-06-22 21:57:07.919694"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:07.922613"], ["updated_at", "2015-06-22 21:57:07.922613"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:07.927851"], ["updated_at", "2015-06-22 21:57:07.927851"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:07.930945"], ["updated_at", "2015-06-22 21:57:07.930945"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:07.933430"], ["updated_at", "2015-06-22 21:57:07.933430"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:57:07.936562"], ["updated_at", "2015-06-22 21:57:07.936562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 442ms (ActiveRecord: 6.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (63.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.7ms) Completed 200 OK in 111ms (Views: 100.9ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010228_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:57:08.369164"], ["updated_at", "2015-06-22 21:57:08.369164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:57:08.449694"], ["updated_at", "2015-06-22 21:57:08.449694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:57:38', '2015-06-22 21:57:38') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (1.1ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:57:38', '2015-06-22 21:57:38') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (8.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:57:38', '2015-06-22 21:57:38') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.0ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374)  (1.4ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (19.6ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.9ms) Completed 200 OK in 611ms (Views: 597.4ms | ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (31.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (54.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (47.1ms) Completed 200 OK in 134ms (Views: 126.1ms | ActiveRecord: 6.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:57:40.327228"], ["updated_at", "2015-06-22 21:57:40.327228"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:57:40.330145"], ["updated_at", "2015-06-22 21:57:40.330145"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:40.332465"], ["updated_at", "2015-06-22 21:57:40.332465"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:40.334822"], ["updated_at", "2015-06-22 21:57:40.334822"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:40.337546"], ["updated_at", "2015-06-22 21:57:40.337546"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:57:40.339810"], ["updated_at", "2015-06-22 21:57:40.339810"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:57:40.342379"], ["updated_at", "2015-06-22 21:57:40.342379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 273ms (ActiveRecord: 7.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.5ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (36.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (5.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.1ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (9.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (218.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (1.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (46.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (568.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.8ms) Completed 200 OK in 630ms (Views: 606.5ms | ActiveRecord: 19.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (21.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.4ms) Completed 200 OK in 57ms (Views: 46.4ms | ActiveRecord: 8.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 52ms (Views: 44.1ms | ActiveRecord: 5.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:57:41.186717"], ["updated_at", "2015-06-22 21:57:41.186717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:57:41.219061"], ["updated_at", "2015-06-22 21:57:41.219061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.8ms) Completed 200 OK in 37ms (Views: 28.8ms | ActiveRecord: 6.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:57:41.270085"], ["updated_at", "2015-06-22 21:57:41.270085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010261_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:57:41.310760"], ["updated_at", "2015-06-22 21:57:41.310760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 10ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.1ms) Completed 200 OK in 67ms (Views: 59.6ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (8.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:58:25', '2015-06-22 21:58:25') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (20.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:58:25', '2015-06-22 21:58:25') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (18.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:58:25', '2015-06-22 21:58:25') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.1ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374)  (1.1ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:58:26.430324"], ["updated_at", "2015-06-22 21:58:26.430324"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (57.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (42.8ms) Completed 200 OK in 794ms (Views: 775.9ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:58:27.547515"], ["updated_at", "2015-06-22 21:58:27.547515"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 21:58:27.550778"], ["updated_at", "2015-06-22 21:58:27.550778"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:58:27.553746"], ["updated_at", "2015-06-22 21:58:27.553746"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:58:27.556110"], ["updated_at", "2015-06-22 21:58:27.556110"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:58:27.558748"], ["updated_at", "2015-06-22 21:58:27.558748"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:58:27.560980"], ["updated_at", "2015-06-22 21:58:27.560980"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:58:27.563461"], ["updated_at", "2015-06-22 21:58:27.563461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 88ms (ActiveRecord: 8.3ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (15.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (34.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (19.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (9.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (206.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (11.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (53.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (515.2ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.8ms) Completed 200 OK in 598ms (Views: 547.1ms | ActiveRecord: 19.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (25.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 67ms (Views: 55.8ms | ActiveRecord: 9.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (14.3ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.5ms) Completed 200 OK in 57ms (Views: 48.8ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:58:28.437535"], ["updated_at", "2015-06-22 21:58:28.437535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010308_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:58:28.506149"], ["updated_at", "2015-06-22 21:58:28.506149"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 68ms (Views: 60.0ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:58:28.613322"], ["updated_at", "2015-06-22 21:58:28.613322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.6ms) Completed 200 OK in 35ms (Views: 28.4ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 21:59:18', '2015-06-22 21:59:18') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 21:59:18', '2015-06-22 21:59:18') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 21:59:18', '2015-06-22 21:59:18') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374)  (1.2ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:59:18.861258"], ["updated_at", "2015-06-22 21:59:18.861258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (226.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.3ms) Completed 200 OK in 2388ms (Views: 2307.6ms | ActiveRecord: 12.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 21:59:21.738729"], ["updated_at", "2015-06-22 21:59:21.738729"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 21:59:21.741366"], ["updated_at", "2015-06-22 21:59:21.741366"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:59:21.743402"], ["updated_at", "2015-06-22 21:59:21.743402"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:59:21.745657"], ["updated_at", "2015-06-22 21:59:21.745657"]] SQL (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:59:21.748613"], ["updated_at", "2015-06-22 21:59:21.748613"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:59:21.750774"], ["updated_at", "2015-06-22 21:59:21.750774"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:59:21.753144"], ["updated_at", "2015-06-22 21:59:21.753144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 269ms (ActiveRecord: 8.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (36.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (19.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (189.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (1.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (10.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (52.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (508.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.9ms) Completed 200 OK in 557ms (Views: 534.9ms | ActiveRecord: 18.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (11.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (19.0ms) Completed 200 OK in 62ms (Views: 53.9ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (18.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (40.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.8ms) Completed 200 OK in 79ms (Views: 73.4ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 37ms (Views: 35.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 21:59:22.731002"], ["updated_at", "2015-06-22 21:59:22.731002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.3ms) Completed 200 OK in 35ms (Views: 27.4ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:59:22.782571"], ["updated_at", "2015-06-22 21:59:22.782571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010362_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 21:59:22.866363"], ["updated_at", "2015-06-22 21:59:22.866363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.3ms) Completed 200 OK in 70ms (Views: 61.7ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (51.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:02:30', '2015-06-22 22:02:30') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (19.8ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.5ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 22:02:30', '2015-06-22 22:02:30') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (10.9ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 22:02:30', '2015-06-22 22:02:30') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374)  (1.6ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 22:02:30.934304"], ["updated_at", "2015-06-22 22:02:30.934304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (20.3ms) PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.9ms) Completed 200 OK in 619ms (Views: 597.3ms | ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (54.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (58.5ms) Completed 200 OK in 195ms (Views: 186.2ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010552_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 22:02:32.147246"], ["updated_at", "2015-06-22 22:02:32.147246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (10.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (29.5ms) Completed 200 OK in 68ms (Views: 58.2ms | ActiveRecord: 7.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1  (13.6ms) ROLLBACK TO SAVEPOINT active_record_1 PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (17.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (131.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (150.8ms) Completed 500 Internal Server Error in 178ms (ActiveRecord: 15.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (2.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.5ms) Completed 200 OK in 42ms (Views: 29.5ms | ActiveRecord: 10.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:02:32.724998"], ["updated_at", "2015-06-22 22:02:32.724998"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 50ms (Views: 42.2ms | ActiveRecord: 5.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (46.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.8ms) Completed 200 OK in 101ms (Views: 89.2ms | ActiveRecord: 10.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 22:02:33.059302"], ["updated_at", "2015-06-22 22:02:33.059302"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 22:02:33.062131"], ["updated_at", "2015-06-22 22:02:33.062131"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:02:33.064171"], ["updated_at", "2015-06-22 22:02:33.064171"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:02:33.066994"], ["updated_at", "2015-06-22 22:02:33.066994"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:02:33.070176"], ["updated_at", "2015-06-22 22:02:33.070176"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:02:33.072644"], ["updated_at", "2015-06-22 22:02:33.072644"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 22:02:33.075482"], ["updated_at", "2015-06-22 22:02:33.075482"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 160ms (ActiveRecord: 7.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (1.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (13.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (154.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (32.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (402.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 448ms (Views: 425.0ms | ActiveRecord: 18.1ms)  (0.3ms) ROLLBACK  (1414.6ms) DROP DATABASE IF EXISTS "dummy_test"  (2298.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.4ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.0ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "content_md" text, "content_md_rendered" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.9ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (6.6ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (7.3ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (27.5ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (6.5ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.1ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (6.8ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.4ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (7.9ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (13.9ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.9ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (8.0ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.9ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.1ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.9ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.4ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.1ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.1ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.7ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (3.2ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.1ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.3ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.0ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (19.7ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.3ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.0ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (13.2ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.2ms) ROLLBACK  (5.0ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.2ms) ROLLBACK  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (36.8ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (5.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (5.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:57', '2015-06-22 22:07:57') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:57', '2015-06-22 22:07:57')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.4ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.2ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.3ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.0ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.4ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (4.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (5.1ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:07:58', '2015-06-22 22:07:58') Fixture Delete (0.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58') PG::UndefinedColumn: ERROR: column "content_wysiwyg" of relation "pages_cms_articles" does not exist LINE 1: INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "... ^ : INSERT INTO "pages_cms_articles" ("id", "content_wysiwyg", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:07:58', '2015-06-22 22:07:58')  (0.1ms) ROLLBACK  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:08:40', '2015-06-22 22:08:40') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.5ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 22:08:40', '2015-06-22 22:08:40') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 22:08:40', '2015-06-22 22:08:40') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:08:40', '2015-06-22 22:08:40', 298486374)  (42.4ms) COMMIT  (8.9ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (116.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (141.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (71.4ms) Completed 200 OK in 784ms (Views: 761.5ms | ActiveRecord: 7.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.6ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (31.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (201.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (58.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (504.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 563ms (Views: 525.9ms | ActiveRecord: 21.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.2ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 22:08:42.204624"], ["updated_at", "2015-06-22 22:08:42.204624"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-22 22:08:42.207596"], ["updated_at", "2015-06-22 22:08:42.207596"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:08:42.210190"], ["updated_at", "2015-06-22 22:08:42.210190"]] SQL (1.5ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:08:42.212708"], ["updated_at", "2015-06-22 22:08:42.212708"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:08:42.215922"], ["updated_at", "2015-06-22 22:08:42.215922"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:08:42.218396"], ["updated_at", "2015-06-22 22:08:42.218396"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 22:08:42.221412"], ["updated_at", "2015-06-22 22:08:42.221412"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (14.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 254ms (ActiveRecord: 21.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (27.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.6ms) Completed 200 OK in 75ms (Views: 64.1ms | ActiveRecord: 9.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (10.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (29.9ms) Completed 200 OK in 77ms (Views: 67.7ms | ActiveRecord: 6.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010922_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 22:08:42.580839"], ["updated_at", "2015-06-22 22:08:42.580839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 12ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (19.3ms) Completed 200 OK in 75ms (Views: 65.9ms | ActiveRecord: 6.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 28.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:08:42.733906"], ["updated_at", "2015-06-22 22:08:42.733906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/_form.html.haml (12.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (46.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 82ms (Views: 68.7ms | ActiveRecord: 7.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.4ms) Completed 200 OK in 31ms (Views: 22.5ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 22:08:42.916034"], ["updated_at", "2015-06-22 22:08:42.916034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.6ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (29.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:09:52', '2015-06-22 22:09:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (1.7ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 22:09:52', '2015-06-22 22:09:52') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 22:09:52', '2015-06-22 22:09:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:09:52', '2015-06-22 22:09:52', 298486374)  (1.1ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (108.0ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (50.6ms) Completed 200 OK in 1173ms (Views: 1089.2ms | ActiveRecord: 8.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435010994_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 22:09:54.443975"], ["updated_at", "2015-06-22 22:09:54.443975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 71ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.0ms) Completed 200 OK in 60ms (Views: 50.8ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 22:09:54.559402"], ["updated_at", "2015-06-22 22:09:54.559402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.6ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.9ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (29.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (52.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.3ms) Completed 200 OK in 91ms (Views: 85.2ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:09:54.859659"], ["updated_at", "2015-06-22 22:09:54.859659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (32.1ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 59ms (Views: 56.8ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 22:09:54.996100"], ["updated_at", "2015-06-22 22:09:54.996100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.9ms) Completed 200 OK in 36ms (Views: 28.7ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 22:09:55.164641"], ["updated_at", "2015-06-22 22:09:55.164641"]] SQL (0.8ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 22:09:55.167819"], ["updated_at", "2015-06-22 22:09:55.167819"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:09:55.178033"], ["updated_at", "2015-06-22 22:09:55.178033"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:09:55.180782"], ["updated_at", "2015-06-22 22:09:55.180782"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:09:55.183714"], ["updated_at", "2015-06-22 22:09:55.183714"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:09:55.187103"], ["updated_at", "2015-06-22 22:09:55.187103"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 22:09:55.190121"], ["updated_at", "2015-06-22 22:09:55.190121"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 155ms (ActiveRecord: 7.7ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.5ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (1.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (22.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (41.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (201.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.3ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (33.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (516.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) Completed 200 OK in 589ms (Views: 562.3ms | ActiveRecord: 19.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.6ms) Completed 200 OK in 62ms (Views: 52.8ms | ActiveRecord: 7.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (73.5ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (40.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:16:03', '2015-06-22 22:16:03') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (1.0ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 22:16:03', '2015-06-22 22:16:03') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.0ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 22:16:03', '2015-06-22 22:16:03') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:16:03', '2015-06-22 22:16:03', 298486374)  (11.9ms) COMMIT  (22.1ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.6ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (103.2ms) Completed 200 OK in 1571ms (Views: 1408.6ms | ActiveRecord: 9.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 22:16:05.685512"], ["updated_at", "2015-06-22 22:16:05.685512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 26.1ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:16:05.941343"], ["updated_at", "2015-06-22 22:16:05.941343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 22:16:05.993111"], ["updated_at", "2015-06-22 22:16:05.993111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (6.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.4ms) Completed 200 OK in 529ms (Views: 518.8ms | ActiveRecord: 7.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435011366_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 22:16:06.679993"], ["updated_at", "2015-06-22 22:16:06.679993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 15ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (46.2ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.4ms) Completed 200 OK in 83ms (Views: 75.1ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (129.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (163.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) Completed 200 OK in 204ms (Views: 198.0ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.1ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 22:16:07.171135"], ["updated_at", "2015-06-22 22:16:07.171135"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 22:16:07.174043"], ["updated_at", "2015-06-22 22:16:07.174043"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:16:07.177167"], ["updated_at", "2015-06-22 22:16:07.177167"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:16:07.186196"], ["updated_at", "2015-06-22 22:16:07.186196"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:16:07.189606"], ["updated_at", "2015-06-22 22:16:07.189606"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:16:07.192188"], ["updated_at", "2015-06-22 22:16:07.192188"]] SQL (1.0ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 22:16:07.195077"], ["updated_at", "2015-06-22 22:16:07.195077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 168ms (ActiveRecord: 8.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (31.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (99.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (19.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (17.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (514.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (30.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (878.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.1ms) Completed 200 OK in 959ms (Views: 934.5ms | ActiveRecord: 18.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (21.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.9ms) Completed 200 OK in 52ms (Views: 42.4ms | ActiveRecord: 8.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (52.7ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (18.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-22 22:24:18', '2015-06-22 22:24:18') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (1.1ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-22 22:24:18', '2015-06-22 22:24:18') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-22 22:24:18', '2015-06-22 22:24:18') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-22 22:24:18', '2015-06-22 22:24:18', 298486374)  (1.4ms) COMMIT  (4.2ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (204.3ms) Completed 200 OK in 2062ms (Views: 1995.0ms | ActiveRecord: 8.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 31.7ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-22 22:24:21.133109"], ["updated_at", "2015-06-22 22:24:21.133109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.8ms) Completed 200 OK in 36ms (Views: 27.8ms | ActiveRecord: 6.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:24:21.377684"], ["updated_at", "2015-06-22 22:24:21.377684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 22:24:21.388929"], ["updated_at", "2015-06-22 22:24:21.388929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (45.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (68.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (40.0ms) Completed 200 OK in 158ms (Views: 151.5ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-22 22:24:21.794717"], ["updated_at", "2015-06-22 22:24:21.794717"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-22 22:24:21.797164"], ["updated_at", "2015-06-22 22:24:21.797164"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:24:21.799807"], ["updated_at", "2015-06-22 22:24:21.799807"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:24:21.802138"], ["updated_at", "2015-06-22 22:24:21.802138"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:24:21.804763"], ["updated_at", "2015-06-22 22:24:21.804763"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:24:21.806970"], ["updated_at", "2015-06-22 22:24:21.806970"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 22:24:21.809551"], ["updated_at", "2015-06-22 22:24:21.809551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 180ms (ActiveRecord: 7.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (22.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (39.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.2ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (138.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (22.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (12.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (567.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (39.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.9ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1496.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.2ms) Completed 200 OK in 1573ms (Views: 1548.1ms | ActiveRecord: 19.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (20.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.6ms) Completed 200 OK in 158ms (Views: 148.1ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435011863_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-22 22:24:23.923628"], ["updated_at", "2015-06-22 22:24:23.923628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (31.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (9.7ms) Completed 200 OK in 102ms (Views: 94.2ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (175.4ms) DROP DATABASE IF EXISTS "dummy_test"  (1072.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (53.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.8ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (10.9ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "content_md" text, "content_md_rendered" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (2.4ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (4.6ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (6.6ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.3ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (6.7ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (6.3ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (6.4ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.6ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (6.7ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (7.7ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (7.2ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.5ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.0ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "subheading" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.7ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.1ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (7.1ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.4ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (3.9ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.2ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.8ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.0ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.9ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.7ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.6ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.6ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.3ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (2.9ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (4.0ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")   (3.0ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.4ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (172.0ms) ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 02:07:55', '2015-06-24 02:07:55') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 02:07:55', '2015-06-24 02:07:55') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 02:07:55', '2015-06-24 02:07:55') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (50.8ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.8ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374)  (23.2ms) COMMIT  (30.5ms) ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (8.8ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "/images/1435111676_test_name.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-24 02:07:56.799402"], ["updated_at", "2015-06-24 02:07:56.799402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 90ms (ActiveRecord: 10.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (4.1ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (49.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (49.3ms) Completed 200 OK in 3100ms (Views: 3090.2ms | ActiveRecord: 6.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (71.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (31.0ms) Completed 200 OK in 128ms (Views: 122.6ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-24 02:08:00.665137"], ["updated_at", "2015-06-24 02:08:00.665137"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-24 02:08:00.667815"], ["updated_at", "2015-06-24 02:08:00.667815"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 02:08:00.670140"], ["updated_at", "2015-06-24 02:08:00.670140"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-24 02:08:00.672333"], ["updated_at", "2015-06-24 02:08:00.672333"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 02:08:00.675229"], ["updated_at", "2015-06-24 02:08:00.675229"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 02:08:00.677503"], ["updated_at", "2015-06-24 02:08:00.677503"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-24 02:08:00.679858"], ["updated_at", "2015-06-24 02:08:00.679858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 565ms (ActiveRecord: 7.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.3ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (16.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (35.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (169.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (36.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.6ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (522.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.4ms) Completed 200 OK in 664ms (Views: 642.4ms | ActiveRecord: 18.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.6ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (35.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.3ms) Completed 200 OK in 72ms (Views: 60.9ms | ActiveRecord: 9.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-24 02:08:01.574287"], ["updated_at", "2015-06-24 02:08:01.574287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.3ms) Completed 200 OK in 53ms (Views: 45.3ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-24 02:08:01.675341"], ["updated_at", "2015-06-24 02:08:01.675341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-24 02:08:01.704860"], ["updated_at", "2015-06-24 02:08:01.704860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.2ms) PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.9ms) Completed 200 OK in 46ms (Views: 40.0ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (306.6ms) DROP DATABASE IF EXISTS "dummy_test"  (1267.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (55.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (16.5ms) CREATE TABLE "pages_cms_accounts" ("id" serial primary key, "name" character varying, "site_name" character varying DEFAULT '', "email" character varying DEFAULT '', "web_address" character varying, "mount_location" character varying DEFAULT '/', "meta_tags" character varying DEFAULT '', "meta_description" character varying DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (80.9ms) CREATE TABLE "pages_cms_articles" ("id" serial primary key, "image_id" integer, "account_id" integer, "content" text, "content_md" text, "content_md_rendered" text, "title" character varying, "draft" boolean DEFAULT 'f', "archived" boolean DEFAULT 'f', "tags" text[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (92.9ms) CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id")  (29.2ms) CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")  (25.6ms) CREATE TABLE "pages_cms_blog_feeds" ("id" serial primary key, "page_block_id" integer, "limit" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (31.6ms) CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")  (398.1ms) CREATE TABLE "pages_cms_contact_fields" ("id" serial primary key, "page_block_id" integer, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (81.9ms) CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")  (16.4ms) CREATE TABLE "pages_cms_contacts" ("id" serial primary key, "account_id" integer, "name" character varying, "email" character varying, "message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")  (15.6ms) CREATE TABLE "pages_cms_documents" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_pages_cms_documents_on_account_id" ON "pages_cms_documents" USING btree ("account_id")  (217.6ms) CREATE TABLE "pages_cms_image_boxes" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "link" character varying, "heading" character varying, "content" text, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.3ms) CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")  (4.0ms) CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")  (59.5ms) CREATE TABLE "pages_cms_images" ("id" serial primary key, "account_id" integer, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (130.9ms) CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id")  (10.5ms) CREATE TABLE "pages_cms_markdown_texts" ("id" serial primary key, "page_block_id" integer, "content" text, "content_rendered" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.0ms) CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id")  (8.4ms) CREATE TABLE "pages_cms_page_blocks" ("id" serial primary key, "page_id" integer, "order" integer, "name" character varying, "div_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")  (6.2ms) CREATE TABLE "pages_cms_pages" ("id" serial primary key, "account_id" integer, "title" character varying, "slug" character varying, "meta_tags" character varying, "meta_description" character varying, "draft" boolean, "parent_id" integer, "order" integer, "navbar_show" boolean DEFAULT 't', "sidebar_show" boolean DEFAULT 't', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id")  (4.9ms) CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")  (8.6ms) CREATE TABLE "pages_cms_sidebars" ("id" serial primary key, "page_id" integer, "use_instead" integer, "content" text, "show" boolean DEFAULT 't', "fb_feed" boolean DEFAULT 'f', "tw_feed" boolean DEFAULT 'f', "all_tags" boolean DEFAULT 'f', "all_posts" boolean DEFAULT 'f', "all_pages" boolean DEFAULT 'f', "blog_search" boolean DEFAULT 'f', "links" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")  (6.9ms) CREATE TABLE "pages_cms_sliders" ("id" serial primary key, "page_id" integer, "image_id" integer, "header" character varying, "subheading" character varying, "link" character varying, "order" integer, "show" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")  (2.5ms) CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")  (6.8ms) CREATE TABLE "pages_cms_text_boxes" ("id" serial primary key, "page_block_id" integer, "content" text, "order" integer, "css_class" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")  (8.8ms) CREATE TABLE "pages_cms_thumbnails" ("id" serial primary key, "page_block_id" integer, "image_id" integer, "content" text, "link" character varying, "order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.8ms) CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")  (2.6ms) CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")  (35.3ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (3.1ms) ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")  (2.9ms) ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (2.7ms) ALTER TABLE "pages_cms_documents" ADD CONSTRAINT "fk_rails_0e194bf8eb" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (2.8ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.6ms) ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (2.6ms) ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")  (3.0ms) ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.7ms) ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.9ms) ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id")   (9.4ms) ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (3.5ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")   (2.9ms) ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id")  (2.7ms) ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.0ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id")  (2.8ms) ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id")   (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (47.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (5.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (4.5ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (17.2ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 15:18:29', '2015-06-24 15:18:29') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Delete (0.4ms) DELETE FROM "pages_cms_documents" Fixture Insert (0.4ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 15:18:29', '2015-06-24 15:18:29') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 15:18:29', '2015-06-24 15:18:29') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.9ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374)  (1.1ms) COMMIT  (9.3ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (5.1ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (35.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (60.4ms) Completed 200 OK in 2950ms (Views: 2846.4ms | ActiveRecord: 6.7ms)  (12.0ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.2ms) PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (7.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.6ms) Completed 200 OK in 43ms (Views: 35.3ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.2ms) Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (13.3ms) SAVEPOINT active_record_1 SQL (18.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-24 15:18:33.074132"], ["updated_at", "2015-06-24 15:18:33.074132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-24 15:18:33.399996"], ["updated_at", "2015-06-24 15:18:33.399996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (23.3ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435159113_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-24 15:18:33.464286"], ["updated_at", "2015-06-24 15:18:33.464286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 38ms (ActiveRecord: 24.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.5ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (39.7ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.5ms) Completed 200 OK in 81ms (Views: 73.0ms | ActiveRecord: 5.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (13.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (36.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.3ms) Completed 200 OK in 74ms (Views: 68.8ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (31.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (189.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (56.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (555.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.0ms) Completed 200 OK in 639ms (Views: 578.5ms | ActiveRecord: 20.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-24 15:18:34.414542"], ["updated_at", "2015-06-24 15:18:34.414542"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-24 15:18:34.416858"], ["updated_at", "2015-06-24 15:18:34.416858"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:18:34.418832"], ["updated_at", "2015-06-24 15:18:34.418832"]] SQL (1.1ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:18:34.420980"], ["updated_at", "2015-06-24 15:18:34.420980"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:18:34.423776"], ["updated_at", "2015-06-24 15:18:34.423776"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:18:34.425930"], ["updated_at", "2015-06-24 15:18:34.425930"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-24 15:18:34.428729"], ["updated_at", "2015-06-24 15:18:34.428729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 87ms (ActiveRecord: 7.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (181.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (10.7ms) Completed 200 OK in 275ms (Views: 264.9ms | ActiveRecord: 8.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (53.5ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (11.0ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 15:19:36', '2015-06-24 15:19:36') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_documents" Fixture Insert (0.3ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 15:19:36', '2015-06-24 15:19:36') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 15:19:36', '2015-06-24 15:19:36') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374)  (1.1ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (34.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (57.4ms) Completed 200 OK in 758ms (Views: 674.7ms | ActiveRecord: 7.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435159178_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-24 15:19:38.170572"], ["updated_at", "2015-06-24 15:19:38.170572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 13ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (55.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.8ms) Completed 200 OK in 98ms (Views: 91.8ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-24 15:19:38.538276"], ["updated_at", "2015-06-24 15:19:38.538276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-24 15:19:38.672925"], ["updated_at", "2015-06-24 15:19:38.672925"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-24 15:19:38.675487"], ["updated_at", "2015-06-24 15:19:38.675487"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:19:38.677892"], ["updated_at", "2015-06-24 15:19:38.677892"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:19:38.680251"], ["updated_at", "2015-06-24 15:19:38.680251"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:19:38.682954"], ["updated_at", "2015-06-24 15:19:38.682954"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:19:38.685328"], ["updated_at", "2015-06-24 15:19:38.685328"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-24 15:19:38.687905"], ["updated_at", "2015-06-24 15:19:38.687905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 122ms (ActiveRecord: 7.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.4ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.3ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.3ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (23.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (42.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (190.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (1.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (37.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (558.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (1.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (24.2ms) Completed 200 OK in 630ms (Views: 600.0ms | ActiveRecord: 23.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (1.0ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (47.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.9ms) Completed 200 OK in 83ms (Views: 70.5ms | ActiveRecord: 10.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-24 15:19:39.465969"], ["updated_at", "2015-06-24 15:19:39.465969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.4ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.8ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.9ms) Completed 200 OK in 49ms (Views: 40.8ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-24 15:19:39.595984"], ["updated_at", "2015-06-24 15:19:39.595984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.3ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.4ms) Completed 200 OK in 53ms (Views: 45.5ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "pages_cms_accounts" Fixture Insert (31.2ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 15:20:34', '2015-06-24 15:20:34') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_documents" Fixture Insert (0.3ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 15:20:34', '2015-06-24 15:20:34') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 15:20:34', '2015-06-24 15:20:34') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374)  (1.0ms) COMMIT  (5.3ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (168.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (18.9ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (7.3ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (43.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 20:06:06', '2015-06-24 20:06:06') Fixture Delete (1.1ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.7ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_documents" Fixture Insert (0.3ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 20:06:06', '2015-06-24 20:06:06') Fixture Delete (1.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (28.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 20:06:06', '2015-06-24 20:06:06') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 20:06:06', '2015-06-24 20:06:06') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (16.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.7ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:06:07', '2015-06-24 20:06:07', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:06:07', '2015-06-24 20:06:07', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 20:06:07', '2015-06-24 20:06:07', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:06:07', '2015-06-24 20:06:07', 298486374)  (1.4ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (18.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (6.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (60.0ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (4.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (3.6ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (7.1ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 20:22:36', '2015-06-24 20:22:36') Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (157.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_documents" Fixture Insert (0.4ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 20:22:36', '2015-06-24 20:22:36') Fixture Delete (5.9ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 20:22:36', '2015-06-24 20:22:36') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 20:22:36', '2015-06-24 20:22:36') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 20:22:37', '2015-06-24 20:22:37', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 20:22:37', '2015-06-24 20:22:37', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:22:37', '2015-06-24 20:22:37', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:22:37', '2015-06-24 20:22:37', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 20:22:37', '2015-06-24 20:22:37', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:22:37', '2015-06-24 20:22:37', 298486374)  (1.3ms) COMMIT  (4.9ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.7ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (16.0ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (4.7ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 20:23:52', '2015-06-24 20:23:52') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.6ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_documents" Fixture Insert (0.3ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 20:23:52', '2015-06-24 20:23:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 20:23:52', '2015-06-24 20:23:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.7ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374)  (1.1ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (17.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (101.5ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (6.9ms) DELETE FROM "pages_cms_accounts" Fixture Insert (1.0ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 21:07:05', '2015-06-24 21:07:05') Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Delete (1.0ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 21:07:05', '2015-06-24 21:07:05') Fixture Delete (1.2ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 21:07:05', '2015-06-24 21:07:05') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:07:05', '2015-06-24 21:07:05', 298486374)  (1.2ms) COMMIT  (3.1ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (28.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (106.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (16.9ms) DELETE FROM "pages_cms_accounts" Fixture Insert (1.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 21:45:27', '2015-06-24 21:45:27') Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (1.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Delete (1.1ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 21:45:27', '2015-06-24 21:45:27') Fixture Delete (1.8ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (1.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 21:45:27', '2015-06-24 21:45:27') Fixture Delete (1.3ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (10.8ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (1.6ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:45:27', '2015-06-24 21:45:27', 298486374)  (1.2ms) COMMIT  (5.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (1.5ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (16.0ms) SAVEPOINT active_record_1 SQL (16.2ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-24 21:45:28.396145"], ["updated_at", "2015-06-24 21:45:28.396145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 156ms (ActiveRecord: 33.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.4ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.8ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (27.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (1.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (80.6ms) Completed 200 OK in 1064ms (Views: 1049.6ms | ActiveRecord: 11.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.9ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.8ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (1.0ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (137.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (161.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (20.7ms) PagesCms::Image Load (0.9ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (86.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (35.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (13.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (562.6ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (9.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.7ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (75.3ms) PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.7ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (1.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (13.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1083.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (23.8ms) Completed 200 OK in 1204ms (Views: 1116.3ms | ActiveRecord: 29.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-24 21:45:30.977263"], ["updated_at", "2015-06-24 21:45:30.977263"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-24 21:45:30.981272"], ["updated_at", "2015-06-24 21:45:30.981272"]] SQL (1.4ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 21:45:30.983895"], ["updated_at", "2015-06-24 21:45:30.983895"]] SQL (1.6ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-24 21:45:30.989413"], ["updated_at", "2015-06-24 21:45:30.989413"]] SQL (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 21:45:30.994448"], ["updated_at", "2015-06-24 21:45:30.994448"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-24 21:45:30.997846"], ["updated_at", "2015-06-24 21:45:30.997846"]] SQL (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-24 21:45:31.001136"], ["updated_at", "2015-06-24 21:45:31.001136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 324ms (ActiveRecord: 11.1ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (1.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (4.2ms) PagesCms::Page Load (1.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (13.0ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (79.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.2ms) Completed 200 OK in 143ms (Views: 114.4ms | ActiveRecord: 25.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-24 21:45:31.248758"], ["updated_at", "2015-06-24 21:45:31.248758"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435182331_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-24 21:45:31.338725"], ["updated_at", "2015-06-24 21:45:31.338725"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 52ms (ActiveRecord: 2.6ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.2ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (24.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (23.8ms) Completed 200 OK in 89ms (Views: 74.1ms | ActiveRecord: 8.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (22.9ms) Completed 200 OK in 58ms (Views: 46.0ms | ActiveRecord: 7.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 34ms (Views: 32.0ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-24 21:45:31.639621"], ["updated_at", "2015-06-24 21:45:31.639621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (12.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (35.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.0ms) Completed 200 OK in 77ms (Views: 70.1ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (81.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.0ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 21:56:29', '2015-06-24 21:56:29') Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 21:56:29', '2015-06-24 21:56:29') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 21:56:29', '2015-06-24 21:56:29') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.1ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374)  (1.3ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.4ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (16.6ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-24 21:56:50', '2015-06-24 21:56:50') Fixture Delete (1.0ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-24 21:56:50', '2015-06-24 21:56:50') Fixture Delete (0.7ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-24 21:56:50', '2015-06-24 21:56:50') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-24 21:56:50', '2015-06-24 21:56:50', 298486374)  (1.1ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-24 21:56:50.492698"], ["updated_at", "2015-06-24 21:56:50.492698"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (28.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (227.7ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (12.8ms) BEGIN Fixture Delete (25.3ms) DELETE FROM "pages_cms_accounts" Fixture Insert (145.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 05:41:21', '2015-06-25 05:41:21') Fixture Delete (19.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (23.1ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.7ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.9ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Delete (1.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.7ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_images" Fixture Insert (0.5ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 05:41:21', '2015-06-25 05:41:21') Fixture Delete (4.0ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 05:41:21', '2015-06-25 05:41:21') Fixture Delete (1.2ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:41:21', '2015-06-25 05:41:21', 298486374)  (1.3ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (13.2ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.6ms) ROLLBACK  (4.5ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 05:41:21.922852"], ["updated_at", "2015-06-25 05:41:21.922852"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (36.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (76.5ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (147.9ms) Completed 200 OK in 911ms (Views: 890.0ms | ActiveRecord: 6.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (3.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 05:41:23.192486"], ["updated_at", "2015-06-25 05:41:23.192486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.4ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.3ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.0ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (1.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (30.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (54.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (19.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (33.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (8.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (11.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (460.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (11.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (48.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1355.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (4.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (1.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (33.6ms) Completed 200 OK in 1473ms (Views: 1394.1ms | ActiveRecord: 31.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (5.4ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (1.1ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (1.1ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (604.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.9ms) Completed 200 OK in 693ms (Views: 677.3ms | ActiveRecord: 13.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (275.3ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 05:41:25.620918"], ["updated_at", "2015-06-25 05:41:25.620918"]] SQL (1.5ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-25 05:41:25.898947"], ["updated_at", "2015-06-25 05:41:25.898947"]] SQL (1.1ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 05:41:25.903293"], ["updated_at", "2015-06-25 05:41:25.903293"]] SQL (1.3ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 05:41:25.907584"], ["updated_at", "2015-06-25 05:41:25.907584"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 05:41:25.911317"], ["updated_at", "2015-06-25 05:41:25.911317"]] SQL (1.0ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 05:41:25.914348"], ["updated_at", "2015-06-25 05:41:25.914348"]] SQL (1.0ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-25 05:41:25.928591"], ["updated_at", "2015-06-25 05:41:25.928591"]]  (2.7ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (40.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 466ms (ActiveRecord: 326.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.4ms) Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.1ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (24.2ms) PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (25.4ms) Completed 200 OK in 104ms (Views: 88.3ms | ActiveRecord: 8.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (1.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435210886_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 05:41:26.396704"], ["updated_at", "2015-06-25 05:41:26.396704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 21ms (ActiveRecord: 3.6ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SAVEPOINT active_record_1 SQL (10.2ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 05:41:26.461381"], ["updated_at", "2015-06-25 05:41:26.461381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 24ms (ActiveRecord: 12.1ms)  (2.0ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.4ms) ROLLBACK  (1.3ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.0ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (12.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.1ms) Completed 200 OK in 125ms (Views: 115.8ms | ActiveRecord: 6.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.6ms) PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (10.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.9ms) Completed 200 OK in 73ms (Views: 64.8ms | ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (1.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (28.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 05:43:24', '2015-06-25 05:43:24') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.9ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (3.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.8ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Delete (1.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.7ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 05:43:24', '2015-06-25 05:43:24') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 05:43:24', '2015-06-25 05:43:24') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374)  (137.3ms) COMMIT  (6.0ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.2ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 05:44:13', '2015-06-25 05:44:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 05:44:13', '2015-06-25 05:44:13') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 05:44:13', '2015-06-25 05:44:13') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:13', '2015-06-25 05:44:13', 298486374)  (1.4ms) COMMIT  (6.8ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 05:44:34', '2015-06-25 05:44:34') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 05:44:34', '2015-06-25 05:44:34') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 05:44:34', '2015-06-25 05:44:34') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:44:34', '2015-06-25 05:44:34', 298486374)  (1.0ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (92.4ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (39.3ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 05:45:48', '2015-06-25 05:45:48') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (11.8ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 05:45:48', '2015-06-25 05:45:48') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.8ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (1.2ms) DELETE FROM "pages_cms_pages" Fixture Insert (1.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 05:45:48', '2015-06-25 05:45:48') Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 05:45:48', '2015-06-25 05:45:48') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 05:45:48', '2015-06-25 05:45:48', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:45:49', '2015-06-25 05:45:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:45:49', '2015-06-25 05:45:49', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 05:45:49', '2015-06-25 05:45:49', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:45:49', '2015-06-25 05:45:49', 298486374)  (11.4ms) COMMIT  (4.0ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (83.0ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.0ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 05:55:52', '2015-06-25 05:55:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 05:55:52', '2015-06-25 05:55:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 05:55:52', '2015-06-25 05:55:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 05:55:52', '2015-06-25 05:55:52', 298486374)  (1.3ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (135.1ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 06:00:25', '2015-06-25 06:00:25') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:00:25', '2015-06-25 06:00:25') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (1.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25') Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:00:25', '2015-06-25 06:00:25') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:00:25', '2015-06-25 06:00:25', 298486374)  (35.6ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.7ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.2ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 06:01:45', '2015-06-25 06:01:45') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:01:45', '2015-06-25 06:01:45') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:01:45', '2015-06-25 06:01:45') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:01:45', '2015-06-25 06:01:45', 298486374)  (1.3ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (62.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (31.0ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'MyString', '/', '2015-06-25 06:04:16', '2015-06-25 06:04:16') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.9ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Delete (1.1ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (11.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:04:16', '2015-06-25 06:04:16') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.9ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:04:16', '2015-06-25 06:04:16') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.9ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:04:16', '2015-06-25 06:04:16', 298486374)  (1.5ms) COMMIT  (3.8ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (62.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (42.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 06:05:12', '2015-06-25 06:05:12') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.8ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:05:12', '2015-06-25 06:05:12') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.8ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:05:12', '2015-06-25 06:05:12') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:05:12', '2015-06-25 06:05:12', 298486374)  (1.0ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) PagesCms::Page Load (1.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (16.1ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.9ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (348.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (29.5ms) Completed 200 OK in 1047ms (Views: 851.1ms | ActiveRecord: 29.4ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (1.1ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.5ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.1ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (21.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (55.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (5.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.5ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (20.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (24.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (263.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.7ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (52.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (701.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.9ms) Completed 200 OK in 789ms (Views: 726.7ms | ActiveRecord: 24.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 06:05:15.409214"], ["updated_at", "2015-06-25 06:05:15.409214"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-25 06:05:15.412347"], ["updated_at", "2015-06-25 06:05:15.412347"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:05:15.414842"], ["updated_at", "2015-06-25 06:05:15.414842"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:05:15.417370"], ["updated_at", "2015-06-25 06:05:15.417370"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:05:15.420394"], ["updated_at", "2015-06-25 06:05:15.420394"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:05:15.422781"], ["updated_at", "2015-06-25 06:05:15.422781"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 06:05:15.425813"], ["updated_at", "2015-06-25 06:05:15.425813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (1.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 318ms (ActiveRecord: 7.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (11.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (34.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.2ms) Completed 200 OK in 72ms (Views: 66.9ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 06:05:15.626829"], ["updated_at", "2015-06-25 06:05:15.626829"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.4ms) Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 06:05:15.708708"], ["updated_at", "2015-06-25 06:05:15.708708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 06:05:15.744018"], ["updated_at", "2015-06-25 06:05:15.744018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.0ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.3ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.9ms) Completed 200 OK in 65ms (Views: 56.3ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435212315_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 06:05:15.878298"], ["updated_at", "2015-06-25 06:05:15.878298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.7ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.2ms) Completed 200 OK in 71ms (Views: 63.4ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.2ms) PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (11.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.3ms) Completed 200 OK in 50ms (Views: 42.6ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (50.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (3.9ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (3.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 06:12:48', '2015-06-25 06:12:48') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (1.9ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:12:48', '2015-06-25 06:12:48') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:12:48', '2015-06-25 06:12:48') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374)  (3.4ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (51.5ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 06:13:59', '2015-06-25 06:13:59') Fixture Delete (18.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (15.0ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:13:59', '2015-06-25 06:13:59') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:13:59', '2015-06-25 06:13:59') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:13:59', '2015-06-25 06:13:59', 298486374)  (1.8ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (1.9ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (212.5ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (19.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 06:16:36', '2015-06-25 06:16:36') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.6ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:16:36', '2015-06-25 06:16:36') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:16:36', '2015-06-25 06:16:36') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (1.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (1.1ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:16:36', '2015-06-25 06:16:36', 298486374)  (1.3ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.2ms) ROLLBACK PagesCms::Account Load (5.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (86.5ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (60.5ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 06:27:15', '2015-06-25 06:27:15') Fixture Delete (152.3ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (1.2ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (26.3ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:27:16', '2015-06-25 06:27:16') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:27:16', '2015-06-25 06:27:16') Fixture Delete (0.6ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.8ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (2.0ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:27:16', '2015-06-25 06:27:16', 298486374)  (1.8ms) COMMIT  (3.5ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (20.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (1.5ms) Completed 200 OK in 3343ms (Views: 3322.1ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435213640_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 06:27:20.093288"], ["updated_at", "2015-06-25 06:27:20.093288"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 88ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.5ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (38.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (1.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (143.5ms) Completed 200 OK in 218ms (Views: 203.7ms | ActiveRecord: 9.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.4ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 06:27:20.395558"], ["updated_at", "2015-06-25 06:27:20.395558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (16.0ms) Completed 200 OK in 59ms (Views: 49.9ms | ActiveRecord: 6.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 06:27:20.633579"], ["updated_at", "2015-06-25 06:27:20.633579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 06:27:20.644916"], ["updated_at", "2015-06-25 06:27:20.644916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.8ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.6ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.6ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.5ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.5ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (1.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (32.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.2ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (9.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (236.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (47.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (723.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (19.0ms) Completed 200 OK in 822ms (Views: 761.5ms | ActiveRecord: 26.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 06:27:21.557102"], ["updated_at", "2015-06-25 06:27:21.557102"]] SQL (1.1ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-25 06:27:21.560559"], ["updated_at", "2015-06-25 06:27:21.560559"]] SQL (1.0ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:27:21.564036"], ["updated_at", "2015-06-25 06:27:21.564036"]] SQL (1.3ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:27:21.567876"], ["updated_at", "2015-06-25 06:27:21.567876"]] SQL (0.9ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:27:21.571811"], ["updated_at", "2015-06-25 06:27:21.571811"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:27:21.575259"], ["updated_at", "2015-06-25 06:27:21.575259"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-25 06:27:21.578266"], ["updated_at", "2015-06-25 06:27:21.578266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 81ms (ActiveRecord: 9.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (36.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.5ms) Completed 200 OK in 87ms (Views: 75.0ms | ActiveRecord: 9.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.2ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (19.8ms) Completed 200 OK in 54ms (Views: 46.4ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (14.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (37.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.0ms) Completed 200 OK in 74ms (Views: 69.4ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK PagesCms::Account Load (2.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (13.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (86.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 06:36:15', '2015-06-25 06:36:15') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (19.7ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (13.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 06:36:15', '2015-06-25 06:36:15') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (19.9ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_pages" Fixture Insert (19.7ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 06:36:15', '2015-06-25 06:36:15') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.8ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.6ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 06:36:15', '2015-06-25 06:36:15', 298486374)  (1.3ms) COMMIT  (5.1ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435214175_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 06:36:15.729742"], ["updated_at", "2015-06-25 06:36:15.729742"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 99ms (ActiveRecord: 2.1ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (4.6ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (46.6ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (59.1ms) Completed 200 OK in 1323ms (Views: 1312.3ms | ActiveRecord: 8.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.5ms) PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.8ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.2ms) Completed 200 OK in 53ms (Views: 42.6ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.8ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 06:36:17.160664"], ["updated_at", "2015-06-25 06:36:17.160664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 13ms (ActiveRecord: 2.6ms)  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (31.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (54.2ms) PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.1ms) Completed 200 OK in 97ms (Views: 89.9ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.3ms) PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (10.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.1ms) Completed 200 OK in 58ms (Views: 49.1ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 06:36:17.518886"], ["updated_at", "2015-06-25 06:36:17.518886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 06:36:17.906466"], ["updated_at", "2015-06-25 06:36:17.906466"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-25 06:36:17.909450"], ["updated_at", "2015-06-25 06:36:17.909450"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:36:17.912153"], ["updated_at", "2015-06-25 06:36:17.912153"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:36:17.915153"], ["updated_at", "2015-06-25 06:36:17.915153"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:36:17.918228"], ["updated_at", "2015-06-25 06:36:17.918228"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:36:17.920943"], ["updated_at", "2015-06-25 06:36:17.920943"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 06:36:17.923901"], ["updated_at", "2015-06-25 06:36:17.923901"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 373ms (ActiveRecord: 8.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.0ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.5ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (77.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.5ms) Completed 200 OK in 128ms (Views: 115.4ms | ActiveRecord: 9.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (25.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (136.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (454.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (2.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.8ms) Completed 200 OK in 503ms (Views: 478.4ms | ActiveRecord: 21.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 06:36:18.649802"], ["updated_at", "2015-06-25 06:36:18.649802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK PagesCms::Account Load (7.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (76.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 15:55:30', '2015-06-25 15:55:30') Fixture Delete (18.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.8ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30') Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (1.0ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Delete (1.4ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 15:55:30', '2015-06-25 15:55:30') Fixture Delete (14.8ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 15:55:30', '2015-06-25 15:55:30') Fixture Delete (0.9ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.5ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:55:30', '2015-06-25 15:55:30', 298486374)  (1.2ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.8ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435247731_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 15:55:31.396555"], ["updated_at", "2015-06-25 15:55:31.396555"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 131ms (ActiveRecord: 2.0ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (59.0ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (69.8ms) Completed 200 OK in 3309ms (Views: 3298.7ms | ActiveRecord: 7.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 15:55:34.728333"], ["updated_at", "2015-06-25 15:55:34.728333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 15:55:34.843476"], ["updated_at", "2015-06-25 15:55:34.843476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 16ms (ActiveRecord: 1.7ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.7ms) PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (16.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.6ms) Completed 200 OK in 61ms (Views: 52.8ms | ActiveRecord: 7.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 15:55:35.066825"], ["updated_at", "2015-06-25 15:55:35.066825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 15:55:35.205216"], ["updated_at", "2015-06-25 15:55:35.205216"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 4], ["created_at", "2015-06-25 15:55:35.207335"], ["updated_at", "2015-06-25 15:55:35.207335"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 15:55:35.209351"], ["updated_at", "2015-06-25 15:55:35.209351"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 15:55:35.211321"], ["updated_at", "2015-06-25 15:55:35.211321"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 15:55:35.213692"], ["updated_at", "2015-06-25 15:55:35.213692"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 15:55:35.216081"], ["updated_at", "2015-06-25 15:55:35.216081"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 4], ["created_at", "2015-06-25 15:55:35.218947"], ["updated_at", "2015-06-25 15:55:35.218947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 135ms (ActiveRecord: 7.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (112.6ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.1ms) Completed 200 OK in 160ms (Views: 147.0ms | ActiveRecord: 10.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (39.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (63.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (19.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.1ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (6.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (224.7ms) PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.5ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.5ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (94.3ms) PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (35.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.7ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (34.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (676.5ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.8ms) Completed 200 OK in 718ms (Views: 691.5ms | ActiveRecord: 23.7ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (9.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (31.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.8ms) Completed 200 OK in 67ms (Views: 61.8ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.5ms) Completed 200 OK in 52ms (Views: 42.9ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.4ms) Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK PagesCms::Account Load (39.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (34.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 15:57:25', '2015-06-25 15:57:25') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (18.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (1.4ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 15:57:25', '2015-06-25 15:57:25') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 15:57:25', '2015-06-25 15:57:25') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (1.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:57:25', '2015-06-25 15:57:25', 298486374)  (57.7ms) COMMIT  (26.9ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 15:57:26.311280"], ["updated_at", "2015-06-25 15:57:26.311280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 15:57:26.317300"], ["updated_at", "2015-06-25 15:57:26.317300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 15:57:26.320345"], ["updated_at", "2015-06-25 15:57:26.320345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK PagesCms::Account Load (1.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (48.6ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (21.7ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 15:58:16', '2015-06-25 15:58:16') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contacts" Fixture Insert (13.4ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 15:58:16', '2015-06-25 15:58:16') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 15:58:16', '2015-06-25 15:58:16') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:16', '2015-06-25 15:58:16', 298486374)  (1.4ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (11.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK PagesCms::Account Load (1.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.1ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (23.8ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 15:58:52', '2015-06-25 15:58:52') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.5ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (23.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 15:58:52', '2015-06-25 15:58:52') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 15:58:52', '2015-06-25 15:58:52') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 15:58:52', '2015-06-25 15:58:52', 298486374)  (1.0ms) COMMIT  (3.6ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.8ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 15:58:53.253990"], ["updated_at", "2015-06-25 15:58:53.253990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (1.4ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.6ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.3ms) ROLLBACK PagesCms::Account Load (2.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (48.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (23.7ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:00:21', '2015-06-25 16:00:21') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (18.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Delete (0.8ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:00:21', '2015-06-25 16:00:21') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.5ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:00:21', '2015-06-25 16:00:21') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:21', '2015-06-25 16:00:21', 298486374)  (1.2ms) COMMIT  (4.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.8ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:00:22.153136"], ["updated_at", "2015-06-25 16:00:22.153136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.2ms) ROLLBACK PagesCms::Account Load (1.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.6ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (20.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:00:53', '2015-06-25 16:00:53') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (12.1ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:00:53', '2015-06-25 16:00:53') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:00:53', '2015-06-25 16:00:53') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:00:53', '2015-06-25 16:00:53', 298486374)  (1.1ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.8ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:00:54.217892"], ["updated_at", "2015-06-25 16:00:54.217892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "really-cool"]] SQL (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:00:54.234422"], ["updated_at", "2015-06-25 16:00:54.234422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK PagesCms::Account Load (2.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.0ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (23.7ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:03:02', '2015-06-25 16:03:02') Fixture Delete (1.0ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (8.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:03:02', '2015-06-25 16:03:02') Fixture Delete (0.6ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:03:02', '2015-06-25 16:03:02') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:03:02', '2015-06-25 16:03:02', 298486374)  (2.2ms) COMMIT  (5.7ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:03:03.126556"], ["updated_at", "2015-06-25 16:03:03.126556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "really-cool"]] SQL (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:03:03.145362"], ["updated_at", "2015-06-25 16:03:03.145362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK PagesCms::Account Load (2.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (58.3ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (24.1ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:05:38', '2015-06-25 16:05:38') Fixture Delete (0.6ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (12.8ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:05:38', '2015-06-25 16:05:38') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:05:38', '2015-06-25 16:05:38') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (1.1ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962) Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:05:38', '2015-06-25 16:05:38', 298486374)  (1.3ms) COMMIT  (4.6ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.8ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:05:39.087963"], ["updated_at", "2015-06-25 16:05:39.087963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "really-cool"]] SQL (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:05:39.100931"], ["updated_at", "2015-06-25 16:05:39.100931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK PagesCms::Account Load (3.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.4ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.5ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:06:50', '2015-06-25 16:06:50') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:06:50', '2015-06-25 16:06:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:06:50', '2015-06-25 16:06:50') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:06:50', '2015-06-25 16:06:50', 298486374)  (1.4ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "really-cool"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:06:51.506044"], ["updated_at", "2015-06-25 16:06:51.506044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:06:51.514628"], ["updated_at", "2015-06-25 16:06:51.514628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK PagesCms::Account Load (2.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.4ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.6ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:07:09', '2015-06-25 16:07:09') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Delete (0.7ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:07:09', '2015-06-25 16:07:09') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:07:09', '2015-06-25 16:07:09') Fixture Delete (0.4ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:07:09', '2015-06-25 16:07:09', 298486374)  (2.1ms) COMMIT  (3.7ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "really-cool"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:07:09.839594"], ["updated_at", "2015-06-25 16:07:09.839594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "mystring"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:07:09.856484"], ["updated_at", "2015-06-25 16:07:09.856484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK PagesCms::Account Load (2.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (83.6ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (155.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:10:37', '2015-06-25 16:10:37') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:10:37', '2015-06-25 16:10:37') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:10:37', '2015-06-25 16:10:37', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:10:37', '2015-06-25 16:10:37', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:10:37', '2015-06-25 16:10:37', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:10:37', '2015-06-25 16:10:37', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:10:37', '2015-06-25 16:10:37', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (378.5ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:10:37', '2015-06-25 16:10:37', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:10:38', '2015-06-25 16:10:38') Fixture Delete (0.7ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:10:38', '2015-06-25 16:10:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (1.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:10:38', '2015-06-25 16:10:38') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:10:38', '2015-06-25 16:10:38') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:10:38', '2015-06-25 16:10:38', 298486374)  (2.3ms) COMMIT  (4.7ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK PagesCms::Account Load (2.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (64.8ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:23:31', '2015-06-25 16:23:31') Fixture Delete (0.9ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 'MyText', 'MyString', NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES ('MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contacts" Fixture Insert (13.7ms) INSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at", "id") VALUES ('String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("id", "file", "created_at", "updated_at") VALUES (1, 'MyString.jpg', '2015-06-25 16:23:31', '2015-06-25 16:23:31') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.8ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (2.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:23:31', '2015-06-25 16:23:31') Fixture Delete (0.8ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:23:31', '2015-06-25 16:23:31', 298486374)  (1.4ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 16:23:31.661581"], ["updated_at", "2015-06-25 16:23:31.661581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (26.3ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435249412_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 16:23:32.061836"], ["updated_at", "2015-06-25 16:23:32.061836"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 130ms (ActiveRecord: 2.1ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (46.4ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (70.8ms) Completed 200 OK in 4559ms (Views: 4545.8ms | ActiveRecord: 9.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:23:36.848892"], ["updated_at", "2015-06-25 16:23:36.848892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:23:36.857600"], ["updated_at", "2015-06-25 16:23:36.857600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:23:36.862544"], ["updated_at", "2015-06-25 16:23:36.862544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "mystring"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (31.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (54.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.7ms) Completed 200 OK in 138ms (Views: 132.3ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.7ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 16:23:37.231805"], ["updated_at", "2015-06-25 16:23:37.231805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 19ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.2ms) PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.8ms) Completed 200 OK in 157ms (Views: 150.0ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (15.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (38.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.4ms) PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (12.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (9.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (229.6ms) PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.6ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.8ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (43.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (30.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (603.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.2ms) Completed 200 OK in 670ms (Views: 612.6ms | ActiveRecord: 26.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (5.9ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 16:23:38.203810"], ["updated_at", "2015-06-25 16:23:38.203810"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 6], ["created_at", "2015-06-25 16:23:38.206169"], ["updated_at", "2015-06-25 16:23:38.206169"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:23:38.208270"], ["updated_at", "2015-06-25 16:23:38.208270"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:23:38.210396"], ["updated_at", "2015-06-25 16:23:38.210396"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:23:38.213103"], ["updated_at", "2015-06-25 16:23:38.213103"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:23:38.215299"], ["updated_at", "2015-06-25 16:23:38.215299"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 6], ["created_at", "2015-06-25 16:23:38.217880"], ["updated_at", "2015-06-25 16:23:38.217880"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/6/edit Completed 302 Found in 125ms (ActiveRecord: 7.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (31.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.2ms) Completed 200 OK in 58ms (Views: 47.7ms | ActiveRecord: 8.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.2ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.1ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.4ms) Completed 200 OK in 51ms (Views: 44.3ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK PagesCms::Account Load (2.0ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (33.0ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:27:16', '2015-06-25 16:27:16') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("account_id", "id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 1, 'MyText', 'MyString', NULL, '2015-06-25 16:27:16', '2015-06-25 16:27:16') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("account_id", "content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES (1, 'MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:27:16', '2015-06-25 16:27:16', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:27:16', '2015-06-25 16:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:27:16', '2015-06-25 16:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:27:16', '2015-06-25 16:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:27:16', '2015-06-25 16:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("account_id", "name", "email", "message", "created_at", "updated_at", "id") VALUES (1, 'String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:27:16', '2015-06-25 16:27:16', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:27:16', '2015-06-25 16:27:16', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:27:16', '2015-06-25 16:27:16', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("account_id", "id", "file", "created_at", "updated_at") VALUES (1, 1, 'MyString.jpg', '2015-06-25 16:27:16', '2015-06-25 16:27:16') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:27:17', '2015-06-25 16:27:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:27:17', '2015-06-25 16:27:17', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'MyString', 'string', 'MyString', 'MyString', NULL, '2015-06-25 16:27:17', '2015-06-25 16:27:17') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:27:17', '2015-06-25 16:27:17') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:27:17', '2015-06-25 16:27:17', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:27:17', '2015-06-25 16:27:17', 298486374)  (1.3ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435249637_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 16:27:17.499469"], ["updated_at", "2015-06-25 16:27:17.499469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 61ms (ActiveRecord: 1.8ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (27.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (94.3ms) Completed 200 OK in 787ms (Views: 778.2ms | ActiveRecord: 6.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 16:27:18.689398"], ["updated_at", "2015-06-25 16:27:18.689398"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-25 16:27:18.692061"], ["updated_at", "2015-06-25 16:27:18.692061"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:27:18.694316"], ["updated_at", "2015-06-25 16:27:18.694316"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:27:18.696692"], ["updated_at", "2015-06-25 16:27:18.696692"]] SQL (0.8ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:27:18.699406"], ["updated_at", "2015-06-25 16:27:18.699406"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:27:18.702281"], ["updated_at", "2015-06-25 16:27:18.702281"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 16:27:18.705135"], ["updated_at", "2015-06-25 16:27:18.705135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 333ms (ActiveRecord: 8.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (20.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (43.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (3.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (23.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (4.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (8.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (7.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (11.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (220.0ms) PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.4ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (2.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (59.3ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (25.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (646.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.0ms) Completed 200 OK in 699ms (Views: 672.9ms | ActiveRecord: 21.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.6ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (38.9ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.4ms) Completed 200 OK in 76ms (Views: 65.0ms | ActiveRecord: 9.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 16:27:19.543942"], ["updated_at", "2015-06-25 16:27:19.543942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 16:27:19.573801"], ["updated_at", "2015-06-25 16:27:19.573801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.8ms)  (0.3ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.1ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.0ms) Completed 200 OK in 59ms (Views: 53.2ms | ActiveRecord: 4.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.0ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.8ms) Completed 200 OK in 62ms (Views: 54.8ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:27:19.739320"], ["updated_at", "2015-06-25 16:27:19.739320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "mystring"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (1.2ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:27:19.790222"], ["updated_at", "2015-06-25 16:27:19.790222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (21.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (45.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (1.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (18.1ms) Completed 200 OK in 90ms (Views: 84.1ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact -----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK PagesCms::Account Load (1.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (33.9ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.8ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:29:33', '2015-06-25 16:29:33') Fixture Delete (0.7ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("account_id", "id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 1, 'MyText', 'MyString', NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33') Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("account_id", "content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES (1, 'MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (23.7ms) INSERT INTO "pages_cms_contacts" ("account_id", "name", "email", "message", "created_at", "updated_at", "id") VALUES (1, 'String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_images" Fixture Insert (1.7ms) INSERT INTO "pages_cms_images" ("account_id", "id", "file", "created_at", "updated_at") VALUES (1, 1, 'MyString.jpg', '2015-06-25 16:29:33', '2015-06-25 16:29:33') Fixture Delete (0.7ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'different', 'different', 'MyString', 'MyString', NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:29:33', '2015-06-25 16:29:33') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.5ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:29:33', '2015-06-25 16:29:33', 298486374)  (1.1ms) COMMIT  (4.9ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 16:29:33.668976"], ["updated_at", "2015-06-25 16:29:33.668976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:29:33.992166"], ["updated_at", "2015-06-25 16:29:33.992166"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:29:34.004600"], ["updated_at", "2015-06-25 16:29:34.004600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435249774_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 16:29:34.612043"], ["updated_at", "2015-06-25 16:29:34.612043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 145ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.5ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (191.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (44.9ms) Completed 200 OK in 1288ms (Views: 1279.0ms | ActiveRecord: 6.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.8ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (118.0ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.7ms) Completed 200 OK in 201ms (Views: 187.8ms | ActiveRecord: 10.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.0ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 16:29:36.301912"], ["updated_at", "2015-06-25 16:29:36.301912"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 5], ["created_at", "2015-06-25 16:29:36.304419"], ["updated_at", "2015-06-25 16:29:36.304419"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:29:36.307518"], ["updated_at", "2015-06-25 16:29:36.307518"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:29:36.310316"], ["updated_at", "2015-06-25 16:29:36.310316"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:29:36.313386"], ["updated_at", "2015-06-25 16:29:36.313386"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:29:36.315896"], ["updated_at", "2015-06-25 16:29:36.315896"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:29:36.318544"], ["updated_at", "2015-06-25 16:29:36.318544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/5/edit Completed 302 Found in 224ms (ActiveRecord: 8.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (80.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.0ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (349.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (26.6ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (7.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (644.6ms) PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.5ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (1.0ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.8ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (46.9ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (6.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (32.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (1.0ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (1298.0ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.3ms) Completed 200 OK in 1345ms (Views: 1316.5ms | ActiveRecord: 23.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (2.5ms) ROLLBACK  (0.3ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 16:29:37.843795"], ["updated_at", "2015-06-25 16:29:37.843795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (17.2ms) Completed 200 OK in 56ms (Views: 48.5ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (9.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.5ms) Completed 200 OK in 53ms (Views: 45.5ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (8.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (30.8ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.3ms) Completed 200 OK in 73ms (Views: 67.1ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK PagesCms::Account Load (1.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (65.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (12.8ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:30:51', '2015-06-25 16:30:51') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("account_id", "id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 1, 'MyText', 'MyString', NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("account_id", "content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES (1, 'MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (5.1ms) INSERT INTO "pages_cms_contacts" ("account_id", "name", "email", "message", "created_at", "updated_at", "id") VALUES (1, 'String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_images" Fixture Insert (1.2ms) INSERT INTO "pages_cms_images" ("account_id", "id", "file", "created_at", "updated_at") VALUES (1, 1, 'MyString.jpg', '2015-06-25 16:30:51', '2015-06-25 16:30:51') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.4ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'different', 'different', 'MyString', 'MyString', NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:30:51', '2015-06-25 16:30:51') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:30:51', '2015-06-25 16:30:51', 298486374)  (1.1ms) COMMIT  (3.3ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435249851_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 16:30:51.620627"], ["updated_at", "2015-06-25 16:30:51.620627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 99ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.6ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (47.1ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.8ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (59.3ms) Completed 200 OK in 733ms (Views: 722.4ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:30:52.683893"], ["updated_at", "2015-06-25 16:30:52.683893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:30:52.701101"], ["updated_at", "2015-06-25 16:30:52.701101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 16:30:52.718530"], ["updated_at", "2015-06-25 16:30:52.718530"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (52.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.9ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.8ms) Completed 200 OK in 99ms (Views: 89.9ms | ActiveRecord: 5.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (1.6ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 16:30:52.934469"], ["updated_at", "2015-06-25 16:30:52.934469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.2ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (18.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (21.1ms) Completed 200 OK in 75ms (Views: 66.5ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.6ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.9ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.6ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 16:30:53.212635"], ["updated_at", "2015-06-25 16:30:53.212635"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 5], ["created_at", "2015-06-25 16:30:53.215579"], ["updated_at", "2015-06-25 16:30:53.215579"]] SQL (0.7ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:30:53.217789"], ["updated_at", "2015-06-25 16:30:53.217789"]] SQL (0.9ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:30:53.220311"], ["updated_at", "2015-06-25 16:30:53.220311"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:30:53.223094"], ["updated_at", "2015-06-25 16:30:53.223094"]] SQL (0.8ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:30:53.225725"], ["updated_at", "2015-06-25 16:30:53.225725"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:30:53.228317"], ["updated_at", "2015-06-25 16:30:53.228317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/5/edit Completed 302 Found in 203ms (ActiveRecord: 8.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (15.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (38.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (1.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (170.7ms) PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.6ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.3ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (41.8ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (5.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (26.7ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (525.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (1.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.7ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (21.1ms) Completed 200 OK in 573ms (Views: 546.6ms | ActiveRecord: 23.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.0ms) PagesCms::Page Load (0.8ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (32.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 60ms (Views: 49.3ms | ActiveRecord: 9.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (1.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (8.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (31.7ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (13.6ms) Completed 200 OK in 76ms (Views: 70.5ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK PagesCms::Account Load (1.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (55.2ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "pages_cms_accounts" Fixture Insert (22.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:32:44', '2015-06-25 16:32:44') Fixture Delete (0.5ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.4ms) INSERT INTO "pages_cms_articles" ("account_id", "id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 1, 'MyText', 'MyString', NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44') Fixture Insert (0.2ms) INSERT INTO "pages_cms_articles" ("account_id", "content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES (1, 'MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (15.1ms) INSERT INTO "pages_cms_contacts" ("account_id", "name", "email", "message", "created_at", "updated_at", "id") VALUES (1, 'String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Delete (0.6ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("account_id", "id", "file", "created_at", "updated_at") VALUES (1, 1, 'MyString.jpg', '2015-06-25 16:32:44', '2015-06-25 16:32:44') Fixture Delete (0.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'different', 'different', 'MyString', 'MyString', NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:32:44', '2015-06-25 16:32:44') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:32:44', '2015-06-25 16:32:44', 298486374)  (1.9ms) COMMIT  (3.2ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (2.6ms) Completed 200 OK in 639ms (Views: 637.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (4.3ms) PagesCms::Article Load (0.3ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (206.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (38.7ms) Completed 200 OK in 305ms (Views: 270.3ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 16:32:45.902632"], ["updated_at", "2015-06-25 16:32:45.902632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 2.1ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:32:45.962347"], ["updated_at", "2015-06-25 16:32:45.962347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:32:45.987688"], ["updated_at", "2015-06-25 16:32:45.987688"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.1ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.5ms) PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (16.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.3ms) Completed 200 OK in 61ms (Views: 53.2ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 16:32:46.090124"], ["updated_at", "2015-06-25 16:32:46.090124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (49.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (72.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (24.3ms) Completed 200 OK in 125ms (Views: 118.9ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (1.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.0ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.4ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (91.1ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.1ms) Completed 200 OK in 144ms (Views: 131.5ms | ActiveRecord: 9.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (11.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (24.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (1.9ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (7.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.3ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.2ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (204.1ms) PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.4ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.6ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (40.0ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.7ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.9ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (637.4ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 696ms (Views: 643.7ms | ActiveRecord: 23.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 16:32:47.167478"], ["updated_at", "2015-06-25 16:32:47.167478"]] SQL (0.7ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 5], ["created_at", "2015-06-25 16:32:47.169704"], ["updated_at", "2015-06-25 16:32:47.169704"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:32:47.171834"], ["updated_at", "2015-06-25 16:32:47.171834"]] SQL (22.5ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:32:47.174123"], ["updated_at", "2015-06-25 16:32:47.174123"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:32:47.199257"], ["updated_at", "2015-06-25 16:32:47.199257"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:32:47.202428"], ["updated_at", "2015-06-25 16:32:47.202428"]] SQL (0.7ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:32:47.204918"], ["updated_at", "2015-06-25 16:32:47.204918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/5/edit Completed 302 Found in 90ms (ActiveRecord: 28.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435249967_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 16:32:47.335868"], ["updated_at", "2015-06-25 16:32:47.335868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 11ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.9ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.9ms) Completed 200 OK in 86ms (Views: 77.1ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK PagesCms::Account Load (1.9ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (52.3ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (23.9ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 16:33:28', '2015-06-25 16:33:28') Fixture Delete (0.8ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.5ms) INSERT INTO "pages_cms_articles" ("account_id", "id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 1, 'MyText', 'MyString', NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("account_id", "content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES (1, 'MyText', '

MyText

', 'MyString', NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.8ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.6ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.6ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_contacts" Fixture Insert (7.8ms) INSERT INTO "pages_cms_contacts" ("account_id", "name", "email", "message", "created_at", "updated_at", "id") VALUES (1, 'String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Delete (0.5ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_images" Fixture Insert (0.3ms) INSERT INTO "pages_cms_images" ("account_id", "id", "file", "created_at", "updated_at") VALUES (1, 1, 'MyString.jpg', '2015-06-25 16:33:29', '2015-06-25 16:33:29') Fixture Delete (0.4ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.3ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.5ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'different', 'different', 'MyString', 'MyString', NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29') Fixture Insert (0.2ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 16:33:29', '2015-06-25 16:33:29') Fixture Delete (0.5ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.3ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) Fixture Delete (0.4ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.3ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374)  (1.1ms) COMMIT  (4.8ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.2ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (106.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (124.7ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (124.3ms) Completed 200 OK in 985ms (Views: 965.3ms | ActiveRecord: 6.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 16:33:30.384896"], ["updated_at", "2015-06-25 16:33:30.384896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.8ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 16:33:30.614627"], ["updated_at", "2015-06-25 16:33:30.614627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (1.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 16:33:30.630225"], ["updated_at", "2015-06-25 16:33:30.630225"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ PagesCms::PageTest: test_update_page ------------------------------------ PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]] SQL (0.6ms) UPDATE "pages_cms_pages" SET "draft" = $1, "updated_at" = $2 WHERE "pages_cms_pages"."id" = $3 [["draft", "t"], ["updated_at", "2015-06-25 16:33:30.642044"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.8ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435250010_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 16:33:30.748695"], ["updated_at", "2015-06-25 16:33:30.748695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 33ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (37.8ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (12.1ms) Completed 200 OK in 85ms (Views: 75.7ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.8ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.7ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 16:33:31.011114"], ["updated_at", "2015-06-25 16:33:31.011114"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 5], ["created_at", "2015-06-25 16:33:31.014332"], ["updated_at", "2015-06-25 16:33:31.014332"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:33:31.017553"], ["updated_at", "2015-06-25 16:33:31.017553"]] SQL (45.6ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:33:31.021182"], ["updated_at", "2015-06-25 16:33:31.021182"]] SQL (0.7ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:33:31.070901"], ["updated_at", "2015-06-25 16:33:31.070901"]] SQL (0.6ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:33:31.074568"], ["updated_at", "2015-06-25 16:33:31.074568"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:33:31.078316"], ["updated_at", "2015-06-25 16:33:31.078316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/5/edit Completed 302 Found in 236ms (ActiveRecord: 52.7ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.3ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (25.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (48.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.2ms) PagesCms::Image Load (0.6ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (10.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (3.8ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.5ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (8.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (184.9ms) PagesCms::PageBlock Load (0.5ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.5ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.5ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.4ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.5ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.4ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (46.8ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.8ms) PagesCms::Image Load (0.8ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (5.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (30.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.5ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.5ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (537.8ms) PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (15.7ms) Completed 200 OK in 598ms (Views: 566.3ms | ActiveRecord: 24.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.2ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.8ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (49.5ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.4ms) Completed 200 OK in 81ms (Views: 69.9ms | ActiveRecord: 9.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.6ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 16:33:31.947082"], ["updated_at", "2015-06-25 16:33:31.947082"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.2ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.1ms) Completed 200 OK in 55ms (Views: 47.7ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (4.2ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (11.0ms) Completed 200 OK in 47ms (Views: 39.5ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK PagesCms::Account Load (8.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (98.6ms) ALTER TABLE "pages_cms_documents" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" DISABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" DISABLE TRIGGER ALL  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "pages_cms_accounts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_accounts" ("id", "name", "site_name", "email", "mount_location", "created_at", "updated_at") VALUES (1, 'MyString', 'MyString', 'cjwalker@sfu.ca', '/', '2015-06-25 18:02:09', '2015-06-25 18:02:09') Fixture Delete (12.2ms) DELETE FROM "pages_cms_articles" Fixture Insert (0.6ms) INSERT INTO "pages_cms_articles" ("account_id", "id", "content", "title", "image_id", "created_at", "updated_at") VALUES (1, 1, 'MyText', 'MyString', NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09') Fixture Insert (0.3ms) INSERT INTO "pages_cms_articles" ("account_id", "content_md", "content_md_rendered", "title", "image_id", "created_at", "updated_at", "id") VALUES (1, 'MyText', '

MyText

', 'MyString', NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_blog_feeds" Fixture Insert (0.4ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_blog_feeds" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_contact_fields" Fixture Insert (0.4ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.6ms) DELETE FROM "pages_cms_contacts" Fixture Insert (0.3ms) INSERT INTO "pages_cms_contacts" ("account_id", "name", "email", "message", "created_at", "updated_at", "id") VALUES (1, 'String', 'cjwalker@sfu.ca', 'some really long and boring message', '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Delete (1.9ms) DELETE FROM "pages_cms_image_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_image_boxes" ("page_block_id", "image_id", "created_at", "updated_at", "id") VALUES (NULL, NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_images" Fixture Insert (0.4ms) INSERT INTO "pages_cms_images" ("account_id", "id", "file", "created_at", "updated_at") VALUES (1, 1, 'MyString.jpg', '2015-06-25 18:02:09', '2015-06-25 18:02:09') Fixture Delete (4.5ms) DELETE FROM "pages_cms_markdown_texts" Fixture Insert (0.4ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_page_blocks" Fixture Insert (0.4ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (1, 'MyText', 1, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_page_blocks" ("page_id", "name", "order", "created_at", "updated_at", "id") VALUES (NULL, 'MyText', 2, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (1.4ms) DELETE FROM "pages_cms_pages" Fixture Insert (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 1, 'different', 'different', 'MyString', 'MyString', NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09') Fixture Insert (0.3ms) INSERT INTO "pages_cms_pages" ("account_id", "id", "title", "slug", "meta_tags", "meta_description", "parent_id", "created_at", "updated_at") VALUES (1, 2, 'MyString', 'MyString', 'MyString', 'MyString', 1, '2015-06-25 18:02:09', '2015-06-25 18:02:09') Fixture Delete (0.7ms) DELETE FROM "pages_cms_sidebars" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 1, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.3ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at", "id") VALUES ('MyText', 2, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.9ms) DELETE FROM "pages_cms_sliders" Fixture Insert (0.4ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_sliders" ("page_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374) Fixture Delete (0.7ms) DELETE FROM "pages_cms_text_boxes" Fixture Insert (0.4ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "content", "created_at", "updated_at", "id") VALUES (1, '

hello

', '2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962) Fixture Insert (0.2ms) INSERT INTO "pages_cms_text_boxes" ("page_block_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-06-25 18:02:09', '2015-06-25 18:02:09', 298486374)  (1.4ms) COMMIT  (3.4ms) ALTER TABLE "pages_cms_documents" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contacts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_page_blocks" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_pages" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_text_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sliders" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_sidebars" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_articles" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_blog_feeds" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_contact_fields" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_image_boxes" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_markdown_texts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_accounts" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_images" ENABLE TRIGGER ALL;ALTER TABLE "pages_cms_thumbnails" ENABLE TRIGGER ALL  (0.1ms) BEGIN ------------------------ PagesCmsTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.7ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.5ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/_form.html.haml (32.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/accounts/edit.html.haml within layouts/pages_cms/application (71.2ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.7ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND (navbar_show = true AND draft != true) ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (47.7ms) Completed 200 OK in 3124ms (Views: 3103.0ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content_rendered", "

This is bongos, indeed

\n"], ["content", "This is *bongos*, indeed"], ["created_at", "2015-06-25 18:02:12.722677"], ["updated_at", "2015-06-25 18:02:12.722677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- PagesCms::Account Load (0.5ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.4ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.6ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.5ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (1.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails" Processing by PagesCms::Admin::PagesController#create as HTML Parameters: {"page"=>{"title"=>"test page", "meta_tags"=>"tags", "meta_description"=>"some description", "navbar_show"=>true, "sidebar_show"=>true, "draft"=>true, "sidebar_attributes"=>{"content"=>"something", "show"=>true}, "page_blocks_attributes"=>{0=>{"name"=>"something", "div_id"=>"some thing", "blog_feeds_attributes"=>{0=>{"limit"=>"10"}}, "text_boxes_attributes"=>{0=>{"content"=>"

a paragraph

"}}, "image_boxes_attributes"=>{0=>{"heading"=>"

a paragraph

"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "test-page"]] SQL (0.7ms) INSERT INTO "pages_cms_pages" ("title", "meta_tags", "meta_description", "draft", "account_id", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["title", "test page"], ["meta_tags", "tags"], ["meta_description", "some description"], ["draft", "t"], ["account_id", 1], ["slug", "test-page"], ["created_at", "2015-06-25 18:02:13.069774"], ["updated_at", "2015-06-25 18:02:13.069774"]] SQL (0.6ms) INSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "something"], ["div_id", "some thing"], ["page_id", 3], ["created_at", "2015-06-25 18:02:13.072173"], ["updated_at", "2015-06-25 18:02:13.072173"]] SQL (0.6ms) INSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 18:02:13.074246"], ["updated_at", "2015-06-25 18:02:13.074246"]] SQL (1.0ms) INSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["image_id", 1], ["link", "/thing"], ["page_block_id", 980190963], ["created_at", "2015-06-25 18:02:13.076592"], ["updated_at", "2015-06-25 18:02:13.076592"]] SQL (0.6ms) INSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 18:02:13.079504"], ["updated_at", "2015-06-25 18:02:13.079504"]] SQL (0.7ms) INSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["heading", "

a paragraph

"], ["page_block_id", 980190963], ["created_at", "2015-06-25 18:02:13.081742"], ["updated_at", "2015-06-25 18:02:13.081742"]] SQL (0.6ms) INSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 18:02:13.084267"], ["updated_at", "2015-06-25 18:02:13.084267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') PagesCms::Account Load (0.6ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 375ms (ActiveRecord: 8.0ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_thumbnails"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_sidebars"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_text_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_image_boxes"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_blog_feeds"  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Sidebar Load (0.6ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.3ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (41.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (2.1ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (19.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (16.0ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (7.7ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (6.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (380.1ms) PagesCms::PageBlock Load (0.4ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."page_id" = $1 ORDER BY "pages_cms_page_blocks"."order" ASC [["page_id", 1]] PagesCms::TextBox Load (0.4ms) SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::MarkdownText Load (0.4ms) SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::BlogFeed Load (0.3ms) SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ContactField Load (0.3ms) SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::ImageBox Load (0.4ms) SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Thumbnail Load (0.3ms) SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (5.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.5ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (3.2ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.8ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (42.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_text_box_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_markdown_text_fields.html.haml (0.4ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_thumbnail_fields.html.haml (3.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_blog_feed_fields.html.haml (0.7ms) PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (4.4ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_contact_field_fields.html.haml (4.9ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_page_block_fields.html.haml (31.5ms) PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.4ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Sidebar Load (0.7ms) SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) PagesCms::Slider Load (0.4ms) SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_select_js.html.erb (0.1ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (32.7ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (833.9ms) PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND (navbar_show = true AND draft != true) ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (6.6ms) Completed 200 OK in 875ms (Views: 849.9ms | ActiveRecord: 20.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) PagesCms::Page Load (0.6ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."parent_id" IS NULL ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Page Exists (0.2ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] PagesCms::Contact Load (0.6ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 PagesCms::Article Load (0.7ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (54.6ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND (navbar_show = true AND draft != true) ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 83ms (Views: 72.8ms | ActiveRecord: 8.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.3ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND (navbar_show = true AND draft != true) ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) Completed 200 OK in 48ms (Views: 41.9ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["title", "something"], ["tags", "{something}"], ["content", "something"], ["draft", "t"], ["account_id", 1], ["created_at", "2015-06-25 18:02:14.256855"], ["updated_at", "2015-06-25 18:02:14.256855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 8ms (ActiveRecord: 1.8ms)  (0.5ms) SELECT COUNT(*) FROM "pages_cms_articles"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML PagesCms::Account Exists (0.4ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Contact Load (0.3ms) SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (8.4ms) PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (1.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND (navbar_show = true AND draft != true) ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.4ms) Completed 200 OK in 48ms (Views: 40.4ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- PagesCms::PageBlock Load (0.3ms) SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#>, "name"=>"test_name"}} PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pages_cms_images" ("file", "name", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["file", "1435255334_default.png"], ["name", "test_name"], ["account_id", 1], ["created_at", "2015-06-25 18:02:14.431916"], ["updated_at", "2015-06-25 18:02:14.431916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/images Completed 302 Found in 31ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM "pages_cms_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML PagesCms::Account Exists (0.3ms) SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.4ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) PagesCms::Image Load (0.3ms) SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1 [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (25.6ms) PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND (navbar_show = true AND draft != true) ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) Completed 200 OK in 58ms (Views: 50.0ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- PagesCms::Article Load (0.4ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} PagesCms::Article Load (0.5ms) SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (0.3ms) Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.3ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "really-cool"]] SQL (0.5ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 18:02:14.575300"], ["updated_at", "2015-06-25 18:02:14.575300"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.5ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.1ms) SAVEPOINT active_record_1 PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] SQL (0.6ms) INSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["title", "Duplicate"], ["slug", "duplicate"], ["created_at", "2015-06-25 18:02:14.585508"], ["updated_at", "2015-06-25 18:02:14.585508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] PagesCms::Page Load (0.4ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ PagesCms::PageTest: test_update_page ------------------------------------ PagesCms::Page Load (0.2ms) SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 PagesCms::Account Load (0.2ms) SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]] SQL (0.7ms) UPDATE "pages_cms_pages" SET "draft" = $1, "updated_at" = $2 WHERE "pages_cms_pages"."id" = $3 [["draft", "t"], ["updated_at", "2015-06-25 18:02:14.596497"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK